summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https-dns-proxy/luasrc/controller
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-08-29 18:42:10 +0000
committerStan Grishin <stangri@melmac.ca>2023-09-03 20:55:48 +0000
commit6df7b92a50485d7a7c61c38c5abeaf96ad69a28c (patch)
tree3a53c52209eb562ed154a3d2a35b37ba25354121 /applications/luci-app-https-dns-proxy/luasrc/controller
parent48f0fc85f3e784a7411ffecfa0002f3acb692ac7 (diff)
luci-app-https-dns-proxy: rewrite in javascript
Signed-off-by: Stan Grishin <stangri@melmac.ca>
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.lua27
1 files changed, 0 insertions, 27 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 f7122df478..0000000000
--- a/applications/luci-app-https-dns-proxy/luasrc/controller/https-dns-proxy.lua
+++ /dev/null
@@ -1,27 +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 HTTPS Proxy")).acl_depends = { "luci-app-https-dns-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"
- local http = require "luci.http"
- local sys = require "luci.sys"
- local util = require "luci.util"
- if name == "start" then
- sys.init.start(packageName)
- elseif name == "action" then
- util.exec("/etc/init.d/" .. packageName .. " reload >/dev/null 2>&1")
- elseif name == "stop" then
- sys.init.stop(packageName)
- elseif name == "enable" then
- sys.init.enable(packageName)
- elseif name == "disable" then
- sys.init.disable(packageName)
- end
- http.prepare_content("text/plain")
- http.write("0")
-end