Merge pull request #2427 from leonghui/fix_has_curlssl_typo
authorDirk Brenken <dev@brenken.org>
Sat, 5 Jan 2019 21:23:41 +0000 (22:23 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Jan 2019 21:23:41 +0000 (22:23 +0100)
luci-app-ddns: fix typo for has_curlssl()

applications/luci-app-ddns/luasrc/tools/ddns.lua

index 2b92e3e6362c2ce11efedc2e3e0af48f4329cadf..be7f3eeff4fb699730bfdc9f2efbae800d39c356 100755 (executable)
@@ -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()