diff options
| author | Ben Busby <contact@benbusby.com> | 2023-07-11 12:35:22 -0600 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2023-07-11 12:35:22 -0600 |
| commit | 430bbe11d56b3f8ae7583c5d2ad289308d18b411 (patch) | |
| tree | 39bf326db52b8aec6ce56398ef2ac05bef4109e1 /tools | |
| parent | c0706bfe9b354abfadaa2d38f698d3309db3428b (diff) | |
| download | farside-430bbe11d56b3f8ae7583c5d2ad289308d18b411.tar.gz | |
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.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/un-cloudflare.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/un-cloudflare.sh b/tools/un-cloudflare.sh index 3dc3beb..1b0440a 100755 --- a/tools/un-cloudflare.sh +++ b/tools/un-cloudflare.sh @@ -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" |
