summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2022-12-21 15:23:02 -0700
committerBen Busby <contact@benbusby.com>2022-12-21 15:23:02 -0700
commita1d3437a32423dd6cc4a3fe636879f9eb6de2760 (patch)
tree44a195b35fc8f2c2b86c3deefffeaf4d58b20dad /tools
parente539ddc95cf52abdf6884f5de68c3f977467e987 (diff)
downloadfarside-a1d3437a32423dd6cc4a3fe636879f9eb6de2760.tar.gz
Update cloudflare filtered service list
Diffstat (limited to 'tools')
-rwxr-xr-xtools/un-cloudflare.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/un-cloudflare.sh b/tools/un-cloudflare.sh
index dd2f726..3dc3beb 100755
--- a/tools/un-cloudflare.sh
+++ b/tools/un-cloudflare.sh
@@ -14,7 +14,7 @@ while read -r line; do
for ip in $ips
do
echo " - $ip"
- resp=$(curl -s "$ip")
+ resp=$(curl --connect-timeout 5 --max-time 5 -s "$ip")
# Cloudflare does not allow accessing sites using their IP,
# and returns a 1003 error code when attempting to do so. This
@@ -36,7 +36,7 @@ while read -r line; do
done <$file
# Remove any trailing commas from new instance lists
-#sed -i -e ':begin' -e '$!N' -e 's/,\n]/\n]/g' -e 'tbegin' -e 'P' -e 'D' out.json
+sed -i -e ':begin' -e '$!N' -e 's/,\n]/\n]/g' -e 'tbegin' -e 'P' -e 'D' out.json
-#cat out.json | jq --indent 2 . > services.json
-#rm -f out.json
+cat out.json | jq --indent 2 . > services.json
+rm -f out.json