Merge pull request #4740 from zhanhb/luci-app-ddns
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 22 Jan 2021 08:13:35 +0000 (09:13 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Jan 2021 08:13:35 +0000 (09:13 +0100)
luci-app-ddns: fix wget-ssl path

applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns

index 0a60142e6f713febe53e10d44a6e365f3cdf4b6c..36c6bdf269ddb245544200d1769f77b324f6c18a 100755 (executable)
@@ -187,7 +187,7 @@ local methods = {
 
                        local function has_wgetssl()
                                if cache['has_wgetssl'] then return cache['has_wgetssl'] end
-                               local res = (sys.call( [[command -v wget-ssl >/dev/null 2>&1]] ) == 0)
+                               local res = has_wget() and (sys.call( [[wget --version | grep -qF +https >/dev/null 2>&1]] ) == 0)
                                cache['has_wgetssl'] = res
                                return res
                        end