1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 13:10:02 +00:00

Update cloudflare filtered service list

This commit is contained in:
Ben Busby 2022-12-21 15:23:02 -07:00
parent e539ddc95c
commit a1d3437a32
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
2 changed files with 57 additions and 27 deletions

View file

@ -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