ddns-scripts: add colon char in DNS_CHARSET
authorXiaolong Zhang <xliilQwQ@outlook.com>
Sun, 29 Sep 2024 19:46:29 +0000 (03:46 +0800)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 7 Nov 2024 07:11:03 +0000 (08:11 +0100)
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 <fe@dev.tdt.de>
* bump PKG_RELEASE
* update commit message

Signed-off-by: Xiaolong Zhang <xliilQwQ@outlook.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

index e3d67b5a392a6094240bc43a5e2182f35421d515..cb6b7351b52017838dce6878fa938cd08d7392a3 100644 (file)
@@ -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
 
index f952396e0f80f7ac2e8995f06cd8e577499638a6..c628ca1b23cc3789c34f4e933e97ca1f5024f61f 100644 (file)
@@ -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._*-]"