From a1d3437a32423dd6cc4a3fe636879f9eb6de2760 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 21 Dec 2022 15:23:02 -0700 Subject: Update cloudflare filtered service list --- tools/un-cloudflare.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') 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 -- cgit v1.2.3