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