mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-16 14:23:18 +08:00
Build cidr-merger from source
This commit is contained in:
@@ -12,8 +12,8 @@ for file in operator/*.conf; do
|
||||
operator=${operator##*/}
|
||||
log_info "generating IP list of $operator ..."
|
||||
get_asn $file
|
||||
get_asn $file | xargs bgptools -b rib.txt | sort | uniq | docker run -i --rm yangzhaofengsteven/cidr-merge > result/${operator}.txt &
|
||||
get_asn $file | xargs bgptools -b rib6.txt | sort | uniq | docker run -i --rm yangzhaofengsteven/cidr-merge > result/${operator}6.txt &
|
||||
get_asn $file | xargs bgptools -b rib.txt | cidr-merger > result/${operator}.txt &
|
||||
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger > result/${operator}6.txt &
|
||||
done
|
||||
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user