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>
This commit is contained in:
Johnathan Arsenault 2020-10-02 18:56:05 -04:00 committed by Florian Eckert
parent 1640ff1a1e
commit 33d6dc4027
3 changed files with 7 additions and 2 deletions

View 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

View File

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

View File

@ -2,6 +2,9 @@
"name": "no-ip.com",
"ipv4": {
"url": "update_no-ip_com.sh"
},
"ipv6": {
"url": "update_no-ip_com.sh"
}
}