luci-app-ddns: fix wget-ssl path

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
This commit is contained in:
Huangbin Zhan 2021-01-18 22:00:23 +08:00
parent 34e2d6e196
commit 4d5facb315

View file

@ -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