Replies: 1 comment
-
|
Line 425 in 23c3c27 update_chnroute() {
command_is_exists 'curl' || log_error "command not found: curl"
local url='http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest'
local data; data=$(curl -4sSkL "$url") || log_error "download failed, exit-code: $?"
{
echo "create chnroute hash:net family inet"
echo "$data" | grep CN | grep ipv4 | awk -F'|' '{printf("add chnroute %s/%d\n", $4, 32-log($5)/log(2))}'
} >$file_chnroute_set
{
echo "create chnroute6 hash:net family inet6"
echo "$data" | grep CN | grep ipv6 | awk -F'|' '{printf("add chnroute6 %s/%d\n", $4, $5)}'
} >$file_chnroute6_set
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请教一个问题,chnroute6.set这文件是怎么生成的呢?方便贴下转化公示吗?
Beta Was this translation helpful? Give feedback.
All reactions