diff options
author | Stan Grishin <stangri@melmac.net> | 2019-12-19 11:19:59 -0700 |
---|---|---|
committer | Stan Grishin <stangri@melmac.net> | 2019-12-19 11:38:54 -0700 |
commit | 43ddf0cd12ffdcbe6c5d760293cddcbe35968801 (patch) | |
tree | a6ee3feda0229ce1185c1ffda737807ebeb39e01 /applications/luci-app-https_dns_proxy/luasrc/controller | |
parent | 3a657b8ab585f6e0fef5c9128dc84c5a008a6969 (diff) |
luci-app-https-dns-proxy: package name change, support for RFC8484 binary
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-https_dns_proxy/luasrc/controller')
-rw-r--r-- | applications/luci-app-https_dns_proxy/luasrc/controller/https_dns_proxy.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/applications/luci-app-https_dns_proxy/luasrc/controller/https_dns_proxy.lua b/applications/luci-app-https_dns_proxy/luasrc/controller/https_dns_proxy.lua deleted file mode 100644 index 826f3f691f..0000000000 --- a/applications/luci-app-https_dns_proxy/luasrc/controller/https_dns_proxy.lua +++ /dev/null @@ -1,25 +0,0 @@ -module("luci.controller.https_dns_proxy", package.seeall) -function index() - if nixio.fs.access("/etc/config/https_dns_proxy") then - entry({"admin", "services", "https_dns_proxy"}, cbi("https_dns_proxy"), _("DNS over HTTPS Proxy")) - entry({"admin", "services", "https_dns_proxy", "action"}, call("https_dns_proxy_action"), nil).leaf = true - end -end - -function https_dns_proxy_action(name) - local packageName = "https_dns_proxy" - if name == "start" then - luci.sys.init.start(packageName) - elseif name == "action" then - luci.util.exec("/etc/init.d/" .. packageName .. " reload >/dev/null 2>&1") - luci.util.exec("/etc/init.d/dnsmasq restart >/dev/null 2>&1") - elseif name == "stop" then - luci.sys.init.stop(packageName) - elseif name == "enable" then - luci.sys.init.enable(packageName) - elseif name == "disable" then - luci.sys.init.disable(packageName) - end - luci.http.prepare_content("text/plain") - luci.http.write("0") -end |