diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-06-19 19:56:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-19 19:56:15 +0300 |
commit | 65c7610b0597592efda295706dbef3b53d0e7085 (patch) | |
tree | 54e28d4cebb4edd30f6b47679b7f6237c11a86d3 /applications/luci-app-ddns/luasrc/controller/ddns.lua | |
parent | cd50f27956f5c30c13b52e8a70178ce07972d552 (diff) | |
parent | c37eb362071c77cd6df10b0277fdf57c2392cdc0 (diff) |
Merge pull request #744 from chris5560/master
luci-app-ddns: fix handling of parameter "is_glue" and "dns_seerver"
Diffstat (limited to 'applications/luci-app-ddns/luasrc/controller/ddns.lua')
-rwxr-xr-x | applications/luci-app-ddns/luasrc/controller/ddns.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-ddns/luasrc/controller/ddns.lua b/applications/luci-app-ddns/luasrc/controller/ddns.lua index d6ccf9cd45..1f2e6f2b93 100755 --- a/applications/luci-app-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-app-ddns/luasrc/controller/ddns.lua @@ -18,11 +18,11 @@ local UTIL = require "luci.util" local DDNS = require "luci.tools.ddns" -- ddns multiused functions local srv_name = "ddns-scripts" -local srv_ver_min = "2.7.1" -- minimum version of service required +local srv_ver_min = "2.7.2" -- minimum version of service required local srv_ver_cmd = [[/usr/lib/ddns/dynamic_dns_updater.sh --version | awk {'print $2'}]] local app_name = "luci-app-ddns" local app_title = "Dynamic DNS" -local app_version = "2.4.4-1" +local app_version = "2.4.6-1" function index() local nxfs = require "nixio.fs" -- global definitions not available @@ -193,8 +193,8 @@ local function _get_status() local is_glue = tonumber(s["is_glue"] or 0) local command = [[/usr/lib/ddns/dynamic_dns_lucihelper.sh]] command = command .. [[ get_registered_ip ]] .. lookup_host .. [[ ]] .. use_ipv6 .. - [[ ]] .. force_ipversion .. [[ ]] .. force_dnstcp .. [[ ]] .. dnsserver .. - [[ ]] .. is_glue + [[ ]] .. force_ipversion .. [[ ]] .. force_dnstcp .. + [[ ]] .. is_glue .. [[ ]] .. dnsserver local reg_ip = SYS.exec(command) if reg_ip == "" then reg_ip = "_nodata_" |