Generate cncidr.txt from @17mon/china_ip_list

pull/1/head 202008010131
loyalsoldier 2020-08-01 09:07:29 +08:00
parent 4bb65003e6
commit f5068de75f
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
1 changed files with 1 additions and 1 deletions

View File

@ -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