aboutsummaryrefslogtreecommitdiff
path: root/net/ddns-scripts/files/usr/lib/ddns
diff options
context:
space:
mode:
authorWenli Looi <wlooi@ucalgary.ca>2021-05-19 11:42:25 -0700
committerlooi <looi@users.noreply.github.com>2021-05-19 11:43:07 -0700
commit9e2aad3fde6b1a9c4c0080c2c7434ab41f0b36ce (patch)
treeac8b363bf669ef4743c97a34969c261308e70bd1 /net/ddns-scripts/files/usr/lib/ddns
parent5c9ab1ff67fddee8ec34ed55c1b0123d3c6d371f (diff)
ddns-scripts: Fix for domains with dash
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
Diffstat (limited to 'net/ddns-scripts/files/usr/lib/ddns')
-rw-r--r--net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh6
1 files 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 b5dac0ee2..2a677785e 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
@@ -70,11 +70,11 @@ IPV6_REGEX="\(\([0-9A-Fa-f]\{1,4\}:\)\{1,\}\)\(\([0-9A-Fa-f]\{1,4\}\)\{0,1\}\)\(
# characters that are dangerous to pass to a shell command line
SHELL_ESCAPE="[\"\'\`\$\!();><{}?|\[\]\*\\\\]"
-# dns character set
+# dns character set. "-" must be the last character
DNS_CHARSET="[@a-zA-Z0-9._-]"
-# domains can have * for wildcard
-DNS_CHARSET_DOMAIN="[@a-zA-Z0-9._-*]"
+# domains can have * for wildcard. "-" must be the last character
+DNS_CHARSET_DOMAIN="[@a-zA-Z0-9._*-]"
# detect if called by ddns-lucihelper.sh script, disable retrys (empty variable == false)
LUCI_HELPER=$(printf %s "$MYPROG" | grep -i "luci")