diff options
author | Huangbin Zhan <zhanhb88@gmail.com> | 2021-01-18 22:00:23 +0800 |
---|---|---|
committer | Huangbin Zhan <zhanhb88@gmail.com> | 2021-01-18 22:00:23 +0800 |
commit | 4d5facb315e4373ac65a8a0992cdea2f88182ded (patch) | |
tree | 64d87e0fc455913996db5cfb0715614d72426ad8 /applications/luci-app-ddns/root/usr | |
parent | 34e2d6e1965b0d90e10ac2873a94d765b8935963 (diff) |
luci-app-ddns: fix wget-ssl path
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/root/usr')
-rwxr-xr-x | applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns index 0a60142e6f..36c6bdf269 100755 --- a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns +++ b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns @@ -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 |