X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-dnscrypt-proxy%2Fluasrc%2Fmodel%2Fcbi%2Fdnscrypt-proxy%2Foverview_tab.lua;fp=applications%2Fluci-app-dnscrypt-proxy%2Fluasrc%2Fmodel%2Fcbi%2Fdnscrypt-proxy%2Foverview_tab.lua;h=de23ba00da60dae3ead4b327f43699c262441162;hp=ea61366b13be2b38d4b14a3dd81f8a2aaa958511;hb=4a9b391d03a97fd948ce79a6fe2bded7a03e215f;hpb=14dca2f3eef863c03b87bf21dc5787a524d84b62 diff --git a/applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua b/applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua index ea61366b1..de23ba00d 100644 --- a/applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua +++ b/applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua @@ -11,6 +11,13 @@ local plug_cnt = tonumber(luci.sys.exec("env -i /usr/sbin/dnscrypt-proxy --vers local res_list = {} local url = "https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv" +if not fs.access("/lib/libustream-ssl.so") then + m = SimpleForm("error", nil, translate("SSL support not available, please install an libustream-ssl variant to use this package.")) + m.submit = false + m.reset = false + return m +end + if not fs.access(res_input) then luci.sys.call("env -i /bin/uclient-fetch --no-check-certificate -O " .. res_input .. " " .. url .. " >/dev/null 2>&1") end