luci-app-ddns: pass the is_glue option value to the helper 740/head
authorMathias Kresin <dev@kresin.me>
Sat, 4 Jun 2016 05:41:10 +0000 (07:41 +0200)
committerMathias Kresin <dev@kresin.me>
Sun, 12 Jun 2016 10:41:17 +0000 (12:41 +0200)
Signed-off-by: Mathias Kresin <dev@kresin.me>
applications/luci-app-ddns/Makefile
applications/luci-app-ddns/luasrc/controller/ddns.lua

index 009c0b90b67ec1dc326c6d7fc0df39fce466651c..7a09af07f9046135cae2d7b150d99f743ccdf8d2 100644 (file)
@@ -10,7 +10,7 @@ PKG_NAME:=luci-app-ddns
 
 # Version == major.minor.patch
 # increase on new functionality (minor) or patches (patch)
-PKG_VERSION:=2.4.4
+PKG_VERSION:=2.4.5
 
 # Release == build
 # increase on changes of translation files
index 6d7594014b49ca3fd6909243ab400310afd3eb3c..d6ccf9cd45f54f602d5b538f9b6da596d0426b53 100755 (executable)
@@ -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_"