Merge pull request #4740 from zhanhb/luci-app-ddns

luci-app-ddns: fix wget-ssl path
This commit is contained in:
Florian Eckert 2021-01-22 09:13:35 +01:00 committed by GitHub
commit bda65a2690
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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