ddns-scripts: add ipv6 capability for no-ip.com
authorJohnathan Arsenault <johnathan.arsenault@gmail.com>
Fri, 2 Oct 2020 22:56:05 +0000 (18:56 -0400)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 5 Oct 2020 14:02:26 +0000 (16:02 +0200)
Signed-off-by: Johnathan Arsenault <johnathan.arsenault@gmail.com>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh
net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json

index e9987b056ebcdf9e573c537b1fa9da8e812e7ad1..912e6d8609415ec7ff6a81d328ed1d73fc87d266 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
-PKG_VERSION:=2.8.1
+PKG_VERSION:=2.8.2
 PKG_RELEASE:=1
 
 PKG_LICENSE:=GPL-2.0
index 7d4354bd6d2b794d177001b038d950041730346b..e13058b14cd694eb627007bcf2eb3410f569c9cc 100644 (file)
 # 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'"
index 3cf6f92487ab233bc3c47256ce08766507391ac0..e0f8ccb543c558e7b7f47338845daf232964c710 100644 (file)
@@ -2,6 +2,9 @@
        "name": "no-ip.com",
        "ipv4": {
                "url": "update_no-ip_com.sh"
+       },
+       "ipv6": {
+               "url": "update_no-ip_com.sh"
        }
 }