{"id":16804825,"url":"https://github.com/ibug/pac","last_synced_at":"2026-04-11T14:12:27.618Z","repository":{"id":43612218,"uuid":"146326232","full_name":"iBug/pac","owner":"iBug","description":"科学上网，智能分流，使用 GFWList 和 IP 地址双重判断。现在已有 557 颗 ★","archived":false,"fork":false,"pushed_at":"2026-01-24T12:25:55.000Z","size":62,"stargazers_count":557,"open_issues_count":5,"forks_count":87,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-01-25T00:48:00.251Z","etag":null,"topics":["gfwlist-ip","hacktoberfest","pac-ip","shadowsocks-windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iBug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-27T16:44:47.000Z","updated_at":"2026-01-18T13:23:31.000Z","dependencies_parsed_at":"2023-02-15T16:01:41.851Z","dependency_job_id":"3ef26d2d-1a14-4237-962d-d43c94ff98fd","html_url":"https://github.com/iBug/pac","commit_stats":null,"previous_names":[],"tags_count":295,"template":false,"template_full_name":null,"purl":"pkg:github/iBug/pac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Fpac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Fpac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Fpac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Fpac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBug","download_url":"https://codeload.github.com/iBug/pac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBug%2Fpac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29682751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T13:29:26.630Z","status":"ssl_error","status_checked_at":"2026-02-21T13:26:50.125Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gfwlist-ip","hacktoberfest","pac-ip","shadowsocks-windows"],"created_at":"2024-10-13T09:46:13.418Z","updated_at":"2026-02-21T14:09:38.145Z","avatar_url":"https://github.com/iBug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pac\n\nPAC scripts for proxies\n\n## 特点\n\n基于 IP 地址白名单设计，位于白名单中的 IP 地址走直连，白名单以外的 IP 地址走代理。\n\n另有 GFWList 版本从 [gfwlist/gfwlist](https://github.com/gfwlist/gfwlist) 获取域名及 URL 列表，优先匹配列表中的黑白名单，有效防止 DNS 污染。\n\n每周六 12:00 (UTC) 会自动使用 GitHub Actions 运行[生成脚本](build.py)从数据源获取 IP 地址列表并生成 PAC 文件。\n\n本项目暂不支持 IPv6，有 IPv6 需求的用户请参见[由 @wits-fe 维护的 fork](https://github.com/wits-fe/pac)。\n\n## 使用\n\n获取方式：[本仓库的 Releases](https://github.com/iBug/pac/releases/latest)\n\n- `pac-\u003cname\u003e.txt` 包含从数据源 `\u003cname\u003e` 获取的 IP 地址列表（白名单）\n- `pac-gfwlist-\u003cname\u003e.txt` 在 IP 白名单的基础上添加了 GFWList 的匹配\n\n本代码是为 Shadowsocks Windows 4.1.9 及以上版本设计的，若要在旧版本或使用其他代理软件中使用，请手动修改文件第 5 行 `__PROXY__` 为你的代理地址，详情见 [shadowsocks-windows#2761](https://github.com/shadowsocks/shadowsocks-windows/issues/2761)。\n\n## 贡献\n\n本项目包含两部分\n\n1. 从数据源获取 IP 地址列表并转换为 PAC 文件适用的格式，该部分代码位于 [`build.py`](build.py) 文件\n2. PAC 文件的其他部分（例如解析域名和匹配 IP 地址等），该部分代码位于 [`code.js`](code.js) 文件\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibug%2Fpac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibug%2Fpac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibug%2Fpac/lists"}