fix: remove cloudflare service and improve ipv4/ipv6 handling
All checks were successful
ci / docker (push) Successful in 26s

This commit is contained in:
Tine Jozelj 2023-07-18 23:15:03 +02:00
parent 03fe312c02
commit 13c0f838b9
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -97,8 +97,8 @@ do
do
echo "Trying with $service..."
ipv4="$(curl -4 -s -f --connect-timeout=2 $service || echo "")"
ipv6="$(curl -6 -s -f --connect-timeout=2 $service || echo "")"
ipv4="$(curl -4 -s -f --connect-timeout 2 $service || echo "")"
ipv6="$(curl -6 -s -f --connect-timeout 2 $service || echo "")"
if [[ -n "$ipv4$ipv6" ]]
then