|
|
@ -25,7 +25,7 @@ if [ ! -s "$TARGET_FNAME" ]; then |
|
|
|
|
|
|
|
if [ "$DB_SOURCE" = "api.bgpview.io" ]; then |
|
|
|
TARGET_URL="https://api.bgpview.io/asn/${TARGET_ASN}/prefixes" |
|
|
|
curl -s "$TARGET_URL" 2>/dev/null | jsonfilter -e '@.data.ipv4_prefixes[*].prefix' |
|
|
|
curl -s "$TARGET_URL" 2>/dev/null | jsonfilter -e '@.data.ipv4_prefixes[*].prefix' > "$TARGET_FNAME" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|