Skip to content

Commit

Permalink
scripts: Parse all instead (proxied possibility) (fix #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed May 12, 2022
1 parent 1d3ffe1 commit aec3b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function getCfPrefs() {
curl -s "https://api.bgpview.io/asn/${1}/prefixes" | \
jq -r '.data.ipv4_prefixes[] | select(.description | try test("Cloud(f|F)")) | .parent.prefix'
jq -r '.data.ipv4_prefixes[].parent.prefix' | grep /
}

DB="$(echo -e "$(getCfPrefs "13335")\n$(getCfPrefs "395747")" | sort -u)"
Expand Down

0 comments on commit aec3b29

Please sign in to comment.