Skip to content

Commit

Permalink
Optimize cn_ip file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinWin authored Nov 9, 2024
1 parent 94fdc78 commit dc5beae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Generate cn and cn_ip
run: |
mkdir -p./ips/
mkdir -p ./ips/
curl -sSL ${cn} | awk -F '|' '/CN/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' > ./ips/cn_ipv4.txt
cat ./ips/cn_ipv4.txt >> ./data/cn
curl -sSL ${cn} | awk -F '|' '/CN/&&/ipv6/ {print $4 "/" $5}' > ./ips/cn_ipv6.txt
Expand Down

0 comments on commit dc5beae

Please sign in to comment.