From 3d22a3d43223398adcd7161ec4b63afd4a910828 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 25 Dec 2024 20:22:10 +0100 Subject: [PATCH] Update update.sh Signed-off-by: Zoey --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 1091db9..7ab3635 100755 --- a/update.sh +++ b/update.sh @@ -47,10 +47,10 @@ if [ "$IPv4" = "false" ] && [ "$IPv6" = "false" ]; then fi while true; do - if [ "$IPv4" = "true" ] && [ "$(curl -sS4 https://ipv4.ipv64.net/ipcheck.php?ipv4)" != "$(dig "$DUD" IN A +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9.]\+$' | sort | head -n1)" ] + if [ "$IPv4" = "true" ] && [ "$(curl -sS4 https://ipv4.ipv64.net/ipcheck.php?ipv4)" != "$(dig "$DUD" IN A +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9.]\+$' | sort | head -n1)" ]; then curl -sSL4 https://ipv4.ipv64.net/update.php?key="$DUK"&domain="$DUD" | tee /tmp/IPv4.json fi - if [ "$IPv6" = "true" ] && [ "$(curl -sS6 https://ipv6.ipv64.net/ipcheck.php?ipv6)" != "$(dig "$DUD" IN AAAA +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9a-f:]\+$' | sort | head -n1)" ] + if [ "$IPv6" = "true" ] && [ "$(curl -sS6 https://ipv6.ipv64.net/ipcheck.php?ipv6)" != "$(dig "$DUD" IN AAAA +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9a-f:]\+$' | sort | head -n1)" ]; then curl -sSL6 https://ipv6.ipv64.net/update.php?key="$DUK"&domain="$DUD" | tee /tmp/IPv6.json fi