bgptool 0.2.2 (fix #53)

This commit is contained in:
Yifan Gao
2025-11-24 22:39:44 +08:00
parent 1c75e09eab
commit f9e4799665
4 changed files with 7 additions and 22 deletions

View File

@@ -9,8 +9,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 | cidr-merger -s | grep -Fv : | cat > result/${operator}.txt &
get_asn $file | xargs bgptools -b rib6.txt | grep -v '^::/0$' | cidr-merger -s | grep -F : | cat > result/${operator}6.txt &
get_asn $file | xargs bgptools --mrt-file rib.gz | grep -Fv : | cat > result/${operator}.txt &
get_asn $file | xargs bgptools --mrt-file rib6.bz2 | grep -v '^::/0$' | grep -F : | cat > result/${operator}6.txt &
done
wait_exit