From b856edc7ffd389a656f181d2644fe243ab7445d7 Mon Sep 17 00:00:00 2001 From: Yifan Gao Date: Sat, 6 Jan 2018 05:40:13 +0800 Subject: [PATCH] Use curl to download files instead of wget --- common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 2358e349..47bcbf48 100755 --- a/common.sh +++ b/common.sh @@ -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"