mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-07-14 13:22:27 +08:00
Fix single IP address format
ex: 1.1.1.1/32 -> cidrmerge 1.1.1.1 -> cidr-merger 1.1.1.1/32 -> cidr-merger -s
This commit is contained in:
parent
19e5bd4d17
commit
d0fd2dc056
@ -9,8 +9,8 @@ for file in operator/*.conf; do
|
|||||||
operator=${operator##*/}
|
operator=${operator##*/}
|
||||||
log_info "generating IP list of $operator ..."
|
log_info "generating IP list of $operator ..."
|
||||||
get_asn $file
|
get_asn $file
|
||||||
get_asn $file | xargs bgptools -b rib.txt | cidr-merger > result/${operator}.txt &
|
get_asn $file | xargs bgptools -b rib.txt | cidr-merger -s > result/${operator}.txt &
|
||||||
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger > result/${operator}6.txt &
|
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger -s > result/${operator}6.txt &
|
||||||
done
|
done
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user