Browse Source

Merge pull request #15657 from looi/fix_ddns_wildcard

ddns-scripts: Fix for wildcard subdomain
lilik-openwrt-22.03
Florian Eckert 4 years ago
committed by GitHub
parent
commit
35264e0a2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions
  1. +1
    -1
      net/ddns-scripts/Makefile
  2. +3
    -0
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh
  3. +1
    -1
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

+ 1
- 1
net/ddns-scripts/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-scripts
PKG_VERSION:=2.8.2
PKG_RELEASE:=7
PKG_RELEASE:=8
PKG_LICENSE:=GPL-2.0


+ 3
- 0
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh View File

@ -73,6 +73,9 @@ SHELL_ESCAPE="[\"\'\`\$\!();><{}?|\[\]\*\\\\]"
# dns character set
DNS_CHARSET="[@a-zA-Z0-9._-]"
# domains can have * for wildcard
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")


+ 1
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh View File

@ -257,7 +257,7 @@ esac
# verify validity of variables
[ -n "$lookup_host" ] && sanitize_variable lookup_host "$DNS_CHARSET" ""
[ -n "$dns_server" ] && sanitize_variable dns_server "$DNS_CHARSET" ""
[ -n "$domain" ] && sanitize_variable domain "$DNS_CHARSET" ""
[ -n "$domain" ] && sanitize_variable domain "$DNS_CHARSET_DOMAIN" ""
# Filter shell escape characters, if these are required in the URL, they
# can still be passed url encoded


Loading…
Cancel
Save