From 5deddd2ed365025fc5ea13281700a3548d524d11 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Tue, 30 Sep 2014 08:14:04 +0200 Subject: [PATCH 1/2] ddns-scripts: increment PKG_RELEASE Increment PKG_RELEASE to reflect updates Signed-off-by: Christian Schoenebeck --- net/ddns-scripts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index c57757ba1..ca99df3de 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.0.1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_LICENSE:=GPL-2.0 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) From 178510d42138bd20935ae581e91ce01323617418 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Tue, 30 Sep 2014 08:22:21 +0200 Subject: [PATCH 2/2] ddns-scripts: send_update() detection private IPv4 correction of excluding private IPv4 in send_update() function. Signed-off-by: Christian Schoenebeck --- .../files/usr/lib/ddns/dynamic_dns_functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index 778735bea..10721ac1f 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -552,9 +552,9 @@ send_update() { # $1 # IP to set at DDNS service provider local __IP __URL __ANSWER __ERR - # verify given IP - [ $use_ipv6 -eq 0 ] && __IP=$(echo $1 | grep -v -E "(^0|^10\.|^127|^172|^192)") # no private IPv4's - [ $use_ipv6 -eq 1 ] && __IP=$(echo $1 | grep "^[0-9a-eA-E]") # no IPv6 addr starting with fxxx of with ":" + # verify given IP / no private IPv4's / no IPv6 addr starting with fxxx of with ":" + [ $use_ipv6 -eq 0 ] && __IP=$(echo $1 | grep -v -E "(^0|^10\.|^127|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-1]\.|^192\.168)") + [ $use_ipv6 -eq 1 ] && __IP=$(echo $1 | grep "^[0-9a-eA-E]") [ -z "$__IP" ] && critical_error "Invalid or no IP '$1' given" # do replaces in URL