diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-08-18 10:08:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 10:08:43 +0300 |
commit | 2163284cf7c5d1484a9703cc283619f2a58549f1 (patch) | |
tree | 8567c62c5ec8750adce0649c19f40264f802c8c3 /applications/luci-app-dnscrypt-proxy | |
parent | 5d35777a34d3fda12d7947047351a5151107771e (diff) | |
parent | 4a9b391d03a97fd948ce79a6fe2bded7a03e215f (diff) |
Merge pull request #1311 from dibdot/dnscrypt-proxy
luci-app-dnscrypt-proxy: fix ssl dependency
Diffstat (limited to 'applications/luci-app-dnscrypt-proxy')
-rw-r--r-- | applications/luci-app-dnscrypt-proxy/Makefile | 2 | ||||
-rw-r--r-- | applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy/overview_tab.lua | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/applications/luci-app-dnscrypt-proxy/Makefile b/applications/luci-app-dnscrypt-proxy/Makefile index ec4a1d9769..4b632b8d04 100644 --- a/applications/luci-app-dnscrypt-proxy/Makefile +++ b/applications/luci-app-dnscrypt-proxy/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=LuCI support for DNSCrypt-Proxy -LUCI_DEPENDS:=+libustream-mbedtls +dnscrypt-proxy +LUCI_DEPENDS:=+uclient-fetch +dnscrypt-proxy LUCI_PKGARCH:=all include ../../luci.mk 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 ea61366b13..de23ba00da 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 |