Remove instance API urls when testing for cf proxy

This is related to the previous commit, where instances can now specify
a separate API url. Since users aren't visiting the API urls directly,
however, they shouldn't be included in the cf proxy test.
This commit is contained in:
Ben Busby 2023-07-11 12:35:22 -06:00
parent c0706bfe9b
commit 430bbe11d5
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1

View file

@ -6,7 +6,7 @@ file="services-full.json"
while read -r line; do
if [[ "$line" == "\"https://"* ]]; then
domain=$(echo "$line" | sed -e "s/^\"https:\/\///" -e "s/\",//" -e "s/\"//")
domain=$(echo "$line" | sed -e "s/^\"https:\/\///" -e "s/\",//" -e "s/\"//" | awk -F '|' '{print $1}')
ips=$(dig "$domain" +short || true)
cf=0
echo "$domain"