mirror of
https://github.com/iBug/pac.git
synced 2025-07-14 05:12:17 +08:00
9 lines
191 B
Bash
Executable File
9 lines
191 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SOURCE="http://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone"
|
|
|
|
wget -O ip_ranges.txt "$SOURCE"
|
|
python3 ranges_to_js.py > tmp.js
|
|
cat code.js tmp.js > out.pac
|
|
rm tmp.js
|