From 33d6dc402743f9598b9f50bbc3aa7495acd49c4a Mon Sep 17 00:00:00 2001 From: Johnathan Arsenault Date: Fri, 2 Oct 2020 18:56:05 -0400 Subject: [PATCH] ddns-scripts: add ipv6 capability for no-ip.com Signed-off-by: Johnathan Arsenault Tested-by: Stefan Lippers-Hollmann --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/usr/lib/ddns/update_no-ip_com.sh | 4 +++- net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index e9987b056..912e6d860 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 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'" diff --git a/net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json b/net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json index 3cf6f9248..e0f8ccb54 100644 --- a/net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json +++ b/net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json @@ -2,6 +2,9 @@ "name": "no-ip.com", "ipv4": { "url": "update_no-ip_com.sh" + }, + "ipv6": { + "url": "update_no-ip_com.sh" } }