mirror of
https://github.com/Loyalsoldier/clash-rules.git
synced 2024-11-23 07:05:37 +08:00
Generate cncidr.txt from @17mon/china_ip_list
This commit is contained in:
parent
4bb65003e6
commit
f5068de75f
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -102,7 +102,7 @@ jobs:
|
||||
cat proxy-list-without-redundant | awk '{printf " - |+.%s|\n", $1}' | sed "s/|/'/g" >> proxy.txt
|
||||
cat reject-list-without-redundant | awk '{printf " - |+.%s|\n", $1}' | sed "s/|/'/g" >> reject.txt
|
||||
|
||||
- name: Generate China CIDR list
|
||||
- name: Generate cncidr.txt file
|
||||
run: |
|
||||
echo "payload:" > cncidr.txt
|
||||
curl -sSL ${ipipnet_chinaiplist} | perl -ne '/^(\d{1,3}(\.\d{1,3}){3}\/\d{1,2})/ && print " - |$1|\n"' | sed "s/|/'/g" >> cncidr.txt
|
||||
|
Loading…
Reference in New Issue
Block a user