From 4d5facb315e4373ac65a8a0992cdea2f88182ded Mon Sep 17 00:00:00 2001 From: Huangbin Zhan Date: Mon, 18 Jan 2021 22:00:23 +0800 Subject: luci-app-ddns: fix wget-ssl path Signed-off-by: Huangbin Zhan --- applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-ddns/root/usr') 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 -- cgit v1.2.3