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()

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

index 2b92e3e6362c2ce11efedc2e3e0af48f4329cadf,fb8d0d207e833ff7468f78368149ffd49cc7175a..be7f3eeff4fb699730bfdc9f2efbae800d39c356
@@@ -21,7 -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()
                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