luci-app-ddns: - fix handling of parameter "is_glue" and "dns_seerver"
- fix handling of parameter "is_glue" and "dns_seerver" - depends on https://github.com/openwrt/packages/pull/2875 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
parent
cd50f27956
commit
c37eb36207
3 changed files with 6 additions and 6 deletions
|
@ -10,7 +10,7 @@ PKG_NAME:=luci-app-ddns
|
||||||
|
|
||||||
# Version == major.minor.patch
|
# Version == major.minor.patch
|
||||||
# increase on new functionality (minor) or patches (patch)
|
# increase on new functionality (minor) or patches (patch)
|
||||||
PKG_VERSION:=2.4.5
|
PKG_VERSION:=2.4.6
|
||||||
|
|
||||||
# Release == build
|
# Release == build
|
||||||
# increase on changes of translation files
|
# increase on changes of translation files
|
||||||
|
|
|
@ -18,11 +18,11 @@ local UTIL = require "luci.util"
|
||||||
local DDNS = require "luci.tools.ddns" -- ddns multiused functions
|
local DDNS = require "luci.tools.ddns" -- ddns multiused functions
|
||||||
|
|
||||||
local srv_name = "ddns-scripts"
|
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 srv_ver_cmd = [[/usr/lib/ddns/dynamic_dns_updater.sh --version | awk {'print $2'}]]
|
||||||
local app_name = "luci-app-ddns"
|
local app_name = "luci-app-ddns"
|
||||||
local app_title = "Dynamic DNS"
|
local app_title = "Dynamic DNS"
|
||||||
local app_version = "2.4.4-1"
|
local app_version = "2.4.6-1"
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
local nxfs = require "nixio.fs" -- global definitions not available
|
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 is_glue = tonumber(s["is_glue"] or 0)
|
||||||
local command = [[/usr/lib/ddns/dynamic_dns_lucihelper.sh]]
|
local command = [[/usr/lib/ddns/dynamic_dns_lucihelper.sh]]
|
||||||
command = command .. [[ get_registered_ip ]] .. lookup_host .. [[ ]] .. use_ipv6 ..
|
command = command .. [[ get_registered_ip ]] .. lookup_host .. [[ ]] .. use_ipv6 ..
|
||||||
[[ ]] .. force_ipversion .. [[ ]] .. force_dnstcp .. [[ ]] .. dnsserver ..
|
[[ ]] .. force_ipversion .. [[ ]] .. force_dnstcp ..
|
||||||
[[ ]] .. is_glue
|
[[ ]] .. is_glue .. [[ ]] .. dnsserver
|
||||||
local reg_ip = SYS.exec(command)
|
local reg_ip = SYS.exec(command)
|
||||||
if reg_ip == "" then
|
if reg_ip == "" then
|
||||||
reg_ip = "_nodata_"
|
reg_ip = "_nodata_"
|
||||||
|
|
|
@ -439,7 +439,7 @@ msgstr ""
|
||||||
"Aktualisierungen über HTTPS Protokoll zu unterstützen."
|
"Aktualisierungen über HTTPS Protokoll zu unterstützen."
|
||||||
|
|
||||||
msgid "Network"
|
msgid "Network"
|
||||||
msgstr ""
|
msgstr "Netzwerk"
|
||||||
|
|
||||||
msgid "Network on which the ddns-updater scripts will be started"
|
msgid "Network on which the ddns-updater scripts will be started"
|
||||||
msgstr "Netzwerk auf dem Ereignisse die ddns-updater Skripte starten"
|
msgstr "Netzwerk auf dem Ereignisse die ddns-updater Skripte starten"
|
||||||
|
|
Loading…
Reference in a new issue