mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-15 13:53:16 +08:00
Use curl to download files instead of wget
This commit is contained in:
@@ -17,8 +17,8 @@ get_asn(){
|
||||
}
|
||||
|
||||
prepare_data(){
|
||||
wget http://bgp.potaroo.net/as1221/asnames.txt -O asnames.txt
|
||||
wget http://archive.routeviews.org/dnszones/rib.bz2 -O rib.bz2
|
||||
curl -sSLo asnames.txt http://bgp.potaroo.net/as1221/asnames.txt
|
||||
curl -sSLo rib.bz2 http://archive.routeviews.org/dnszones/rib.bz2
|
||||
log_info "runing bgpdump ..."
|
||||
docker run -it --rm -v `pwd`:/bgpdump -w /bgpdump gaoyifan/bgpdump bgpdump -m -O rib.txt rib.bz2
|
||||
log_info "done"
|
||||
|
||||
Reference in New Issue
Block a user