From 2f1bfeeeb9ddafd6f5f9cfcef69ddfa9c62b3938 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 12 Nov 2021 13:57:57 +0100 Subject: [PATCH] change support IPv6 (#2135) * change support IPv6 * Update ddclient-configuration.sh --- network/ddclient-configuration.sh | 2 +- static/nextcloud.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/network/ddclient-configuration.sh b/network/ddclient-configuration.sh index 250e837e..bf56721b 100644 --- a/network/ddclient-configuration.sh +++ b/network/ddclient-configuration.sh @@ -171,7 +171,7 @@ cat << DDCLIENT_CONF > "/etc/ddclient.conf" # Default system settings use=if, if=$IFACE -use=web, web=https://api.ipify.org +use=web, web=https://api64.ipify.org # DDNS-service specific setting # Provider=$PROVIDER diff --git a/static/nextcloud.sh b/static/nextcloud.sh index 3b88d300..1dd08847 100644 --- a/static/nextcloud.sh +++ b/static/nextcloud.sh @@ -2,8 +2,8 @@ # T&M Hansson IT AB © - 2021, https://www.hanssonit.se/ -WANIP6=$(curl -s -k -m 5 -6 icanhazip.com) -WANIP4=$(curl -s -k -m 5 -4 icanhazip.com) +WANIP6=$(curl -s -k -m 5 -6 https://api64.ipify.org) +WANIP4=$(curl -s -k -m 5 -4 https://api64.ipify.org) ADDRESS=$(hostname -I | cut -d ' ' -f 1) clear