luci-app-ddns: fix wget-ssl path 4740/head
authorHuangbin Zhan <zhanhb88@gmail.com>
Mon, 18 Jan 2021 14:00:23 +0000 (22:00 +0800)
committerHuangbin Zhan <zhanhb88@gmail.com>
Mon, 18 Jan 2021 14:00:23 +0000 (22:00 +0800)
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
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