diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-06-12 13:58:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-12 13:58:58 +0300 |
commit | e52406936efca8e53d50336ace0c7567079c4c8b (patch) | |
tree | 6ec7dc4aee81cdf58065889766e7575afa227d2b /applications/luci-app-ddns/luasrc | |
parent | d014234195f1bf3315e18a3fca5b933ba38f8460 (diff) | |
parent | 59d391b5bdf86e889a188307adc6e49397a5e9b0 (diff) |
Merge pull request #740 from mkresin/master
luci-app-ddns: pass the is_glue option value to the helper
Diffstat (limited to 'applications/luci-app-ddns/luasrc')
-rwxr-xr-x | applications/luci-app-ddns/luasrc/controller/ddns.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/luasrc/controller/ddns.lua b/applications/luci-app-ddns/luasrc/controller/ddns.lua index 6d7594014b..d6ccf9cd45 100755 --- a/applications/luci-app-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-app-ddns/luasrc/controller/ddns.lua @@ -190,9 +190,11 @@ local function _get_status() local dnsserver = s["dns_server"] or "" local force_ipversion = tonumber(s["force_ipversion"] or 0) local force_dnstcp = tonumber(s["force_dnstcp"] or 0) + 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 + [[ ]] .. force_ipversion .. [[ ]] .. force_dnstcp .. [[ ]] .. dnsserver .. + [[ ]] .. is_glue local reg_ip = SYS.exec(command) if reg_ip == "" then reg_ip = "_nodata_" |