Skip to content
Projects

About

Internet access with intelligent traffic splitting, using both GFWList and IP address checks. Now with 576 ★

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
-1
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

pac

PAC scripts for proxies

特点

基于 IP 地址白名单设计,位于白名单中的 IP 地址走直连,白名单以外的 IP 地址走代理。

另有 GFWList 版本从 gfwlist/gfwlist 获取域名及 URL 列表,优先匹配列表中的黑白名单,有效防止 DNS 污染。

每周六 12:00 (UTC) 会自动使用 GitHub Actions 运行生成脚本从数据源获取 IP 地址列表并生成 PAC 文件。

本项目暂不支持 IPv6,有 IPv6 需求的用户请参见由 @wits-fe 维护的 fork。

使用

获取方式:本仓库的 Releases

  • pac-<name>.txt 包含从数据源 <name> 获取的 IP 地址列表(白名单)
  • pac-gfwlist-<name>.txt 在 IP 白名单的基础上添加了 GFWList 的匹配

本代码是为 Shadowsocks Windows 4.1.9 及以上版本设计的,若要在旧版本或使用其他代理软件中使用,请手动修改文件第 5 行 __PROXY__ 为你的代理地址,详情见 shadowsocks-windows#2761。

贡献

本项目包含两部分

  1. 从数据源获取 IP 地址列表并转换为 PAC 文件适用的格式,该部分代码位于 build.py 文件
  2. PAC 文件的其他部分(例如解析域名和匹配 IP 地址等),该部分代码位于 code.js 文件

Explore related projects

Loading…