summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ddns
diff options
context:
space:
mode:
authorleonghui <leonghui@users.noreply.github.com>2019-01-05 10:38:25 +0000
committerGitHub <noreply@github.com>2019-01-05 10:38:25 +0000
commit199d4b1d5c45111919ac5c1844ee5e37d14273a1 (patch)
tree9e64d911dc04c0e35e43ba10f3a43f6bb9f871ea /applications/luci-app-ddns
parent66c2bbc2790813a7889c0dd329131e5012fc83dd (diff)
luci-app-ddns: fix typo for has_curlssl()
Fixes the incorrect message "HTTPS not supported please disable !" when curl with https support is present. grep returns exit code 0 when a match is found. Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns')
-rwxr-xr-xapplications/luci-app-ddns/luasrc/tools/ddns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua
index 6f0c7f095..07439acf2 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 "Protocols:" | grep -qF "https"]] ) == 0)
end
local function has_fetch()