Browse Source

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>
lilik-openwrt-22.03
Johnathan Arsenault 4 years ago
committed by Florian Eckert
parent
commit
33d6dc4027
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      net/ddns-scripts/Makefile
  2. +3
    -1
      net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh
  3. +3
    -0
      net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json

+ 1
- 1
net/ddns-scripts/Makefile 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


+ 3
- 1
net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh 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'"


+ 3
- 0
net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json View File

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

Loading…
Cancel
Save