Browse Source

Merge pull request #2875 from chris5560/master

ddns-scripts: fix parameter handling "is_glue" and "dns_server" (luci…
lilik-openwrt-22.03
Hannu Nyman 9 years ago
committed by GitHub
parent
commit
8c3dda69e0
4 changed files with 445 additions and 185 deletions
  1. +2
    -2
      net/ddns-scripts/Makefile
  2. +1
    -1
      net/ddns-scripts/files/dynamic_dns_functions.sh
  3. +2
    -2
      net/ddns-scripts/files/dynamic_dns_lucihelper.sh
  4. +440
    -180
      net/ddns-scripts/files/tld_names.dat

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

@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-scripts
# Version == major.minor.patch
# increase on new functionality (minor) or patches (patch)
PKG_VERSION:=2.7.1
PKG_VERSION:=2.7.2
# Release == build
# increase on changes of services files or tld_names.dat
PKG_RELEASE:=3
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>


+ 1
- 1
net/ddns-scripts/files/dynamic_dns_functions.sh View File

@ -956,7 +956,7 @@ get_registered_ip() {
# 1 no IP detected
[ $# -lt 1 -o $# -gt 2 ] && write_log 12 "Error calling 'get_registered_ip()' - wrong number of parameters"
[ $is_glue -eq 1 -a -z "$(which host)" ] && write_log 12 "Update of glue records is only supported using BIND host"
[ $is_glue -eq 1 -a -z "$(which host)" ] && write_log 14 "Lookup of glue records is only supported using BIND host"
write_log 7 "Detect registered/public IP"
# set correct regular expression


+ 2
- 2
net/ddns-scripts/files/dynamic_dns_lucihelper.sh View File

@ -32,8 +32,8 @@ case "$1" in
use_ipv6=${3:-"0"} # Use IPv6 - default IPv4
force_ipversion=${4:-"0"} # Force IP Version - default 0 - No
force_dnstcp=${5:-"0"} # Force TCP on DNS - default 0 - No
dns_server=${6:-""} # DNS server - default No DNS
is_glue=${7:-"0"} # Is glue record - default 0 - No
is_glue=${6:-"0"} # Is glue record - default 0 - No
dns_server=${7:-""} # DNS server - default No DNS
write_log 7 "-----> get_registered_ip IP"
get_registered_ip IP
__RET=$?


+ 440
- 180
net/ddns-scripts/files/tld_names.dat
File diff suppressed because it is too large
View File


Loading…
Cancel
Save