diff options
author | Johnathan Arsenault <johnathan.arsenault@gmail.com> | 2020-10-02 18:56:05 -0400 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-10-05 16:02:26 +0200 |
commit | 33d6dc402743f9598b9f50bbc3aa7495acd49c4a (patch) | |
tree | 5c67e651531f286576a7ac6a8c4234626d21002e /net/ddns-scripts/files/usr/lib/ddns | |
parent | 1640ff1a1e1de6a3217cdd0c43905d4b2dd83f8f (diff) |
ddns-scripts: add ipv6 capability for no-ip.com
Signed-off-by: Johnathan Arsenault <johnathan.arsenault@gmail.com>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Diffstat (limited to 'net/ddns-scripts/files/usr/lib/ddns')
-rw-r--r-- | net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh b/net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh index 7d4354bd6..e13058b14 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh @@ -10,13 +10,15 @@ # so we send a dummy (localhost) and a seconds later we send the correct IP addr # local __DUMMY -local __UPDURL="http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.com/nic/update?hostname=[DOMAIN]&myip=[IP]" +local __UPDURL6="http://[USERNAME]:[PASSWORD]@dynupdate6.noip.com/nic/update?hostname=[DOMAIN]&myip=[IP]" +local __UPDURL="http://[USERNAME]:[PASSWORD]@dynupdate.noip.com/nic/update?hostname=[DOMAIN]&myip=[IP]" # inside url we need username and password [ -z "$username" ] && write_log 14 "Service section not configured correctly! Missing 'username'" [ -z "$password" ] && write_log 14 "Service section not configured correctly! Missing 'password'" # set IP version dependend dummy (localhost) [ $use_ipv6 -eq 0 ] && __DUMMY="127.0.0.1" || __DUMMY="::1" +[ $use_ipv6 -eq 0 ] && __UPDURL=$__UPDURL || __UPDURL=$__UPDURL6 # lets do DUMMY transfer write_log 7 "sending dummy IP to 'no-ip.com'" |