diff options
author | leonghui <leonghui@users.noreply.github.com> | 2019-01-05 10:38:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-05 10:38:25 +0000 |
commit | 199d4b1d5c45111919ac5c1844ee5e37d14273a1 (patch) | |
tree | 9e64d911dc04c0e35e43ba10f3a43f6bb9f871ea | |
parent | 66c2bbc2790813a7889c0dd329131e5012fc83dd (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>
-rwxr-xr-x | applications/luci-app-ddns/luasrc/tools/ddns.lua | 2 |
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 6f0c7f0952..07439acf29 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() |