From: Xiaolong Zhang Date: Sun, 29 Sep 2024 19:46:29 +0000 (+0800) Subject: ddns-scripts: add colon char in DNS_CHARSET X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b962029fa8b9e1114729858a5c179e5ee8b9216b;p=openwrt-packages.git ddns-scripts: add colon char in DNS_CHARSET The IPv6 address is separated by ':' instead of '.', so we need to add ':' in DNS_CHARSET. See: 'https://github.com/openwrt/packages/issues/25051' Fixes: #25051 Signed-off-by: Florian Eckert * bump PKG_RELEASE * update commit message Signed-off-by: Xiaolong Zhang --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index e3d67b5a3..cb6b7351b 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.8.2 -PKG_RELEASE:=50 +PKG_RELEASE:=51 PKG_LICENSE:=GPL-2.0 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 f952396e0..c628ca1b2 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 @@ -72,7 +72,7 @@ IPV6_REGEX="\(\([0-9A-Fa-f]\{1,4\}:\)\{1,\}\)\(\([0-9A-Fa-f]\{1,4\}\)\{0,1\}\)\( SHELL_ESCAPE="[\"\'\`\$\!();><{}?|\[\]\*\\\\]" # dns character set. "-" must be the last character -DNS_CHARSET="[@a-zA-Z0-9._-]" +DNS_CHARSET="[@a-zA-Z0-9.:_-]" # domains can have * for wildcard. "-" must be the last character DNS_CHARSET_DOMAIN="[@a-zA-Z0-9._*-]"