change support IPv6 (#2135)

* change support IPv6

* Update ddclient-configuration.sh
This commit is contained in:
Daniel Hansson 2021-11-12 13:57:57 +01:00 committed by GitHub
parent 282c5d7bea
commit 2f1bfeeeb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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