diff options
Diffstat (limited to 'applications/luci-app-ddns')
-rw-r--r-- | applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua | 2 | ||||
-rwxr-xr-x | applications/luci-app-ddns/luasrc/tools/ddns.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua b/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua index 9dc0857509..2f06200146 100644 --- a/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua +++ b/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua @@ -28,7 +28,7 @@ local ns = m:section( NamedSection, "global", "ddns", .. [[<br /><strong>]] .. translate("It is NOT recommended for casual users to change settings on this page.") .. [[</strong><br />]] - .. [[<a href="http://wiki.openwrt.org/doc/uci/ddns#version_2x1" target="_blank">]] + .. [[<a href="https://openwrt.org/docs/guide-user/base-system/ddns#section_ddns" target="_blank">]] .. translate("For detailed information about parameter settings look here.") .. [[</a>]] ) diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua index 6f0c7f0952..be7f3eeff4 100755 --- a/applications/luci-app-ddns/luasrc/tools/ddns.lua +++ b/applications/luci-app-ddns/luasrc/tools/ddns.lua @@ -21,7 +21,7 @@ function env_info(type) end local function has_curlssl() - return (SYS.call( [[$(which curl) -V 2>&1 | grep "Protocols:" | grep -qF "https"]] ) ~= 0) + return (SYS.call( [[$(which curl) -V 2>&1 | grep -qF "https"]] ) == 0) end local function has_fetch() @@ -103,7 +103,7 @@ function env_info(type) end local function has_nslookup() - return (SYS.call( [[$(which nslookup) localhost 2>&1 | grep -qF "(null)"]] ) ~= 0) + return (SYS.call( [[which nslookup >/dev/null 2>&1]] ) == 0) end if type == "has_bindhost" then |