-
MODE
is one of:white
: Domains in thewhite.list
will be connected directly, others will be connected through the proxy.black
: Domains in theblack.list
will be connected through the proxy, others will be connected directly.all
: All domains will be connected through the proxy.
-
PROXY
can be this: (replace 127.0.0.1:8888 with your own proxy server address)DIRECT
for no proxyPROXY 127.0.0.1:8888
for http proxySOCKS5 127.0.0.1:8888; SOCKS 127.0.0.1:8888
for socks5 proxy
This online pac will automatically update from github every 24h
- White list mode:
https://pac.txthinking.com/white/SOCKS5%20127.0.0.1:1080;%20SOCKS%20127.0.0.1:1080
[Recommend] - Black list mode:
https://pac.txthinking.com/black/SOCKS5%20127.0.0.1:1080;%20SOCKS%20127.0.0.1:1080
- All mode:
https://pac.txthinking.com/all/PROXY%20127.0.0.1:8118
$ go get github.com/txthinking/pac
[USAGE]:
$ PAC [OPTIONS]
[OPTIONS]
--listen value Listen address. (default: ":1901")
--white value White list file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/white.list")
--black value Black list file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/black.list")
--customize value Customized map file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/customize.map")
--cycle value Cycle time(s) for updating white list and/or black list and/or customized map from the source. (default: 0)
--help, -h show help
--version, -v print the version
- Don't edit white.list/black.list directly
- Use the
*.sh
to update the white.list/black.list: $ addWhite.sh [domains]
. ep:$ addWhite.sh china.com
$ removeWhite.sh [domains]
. ep:$ removeWhite.sh china.com
$ addBlack.sh [domains]
. ep:$ addBlack.sh google.com
$ removeBlack.sh [domains]
. ep:$ removeBlack.sh google.com
- Domain: prefer first-level domain.
- PR Welcome