diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-18 21:57:01 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-22 23:20:23 +0100 |
commit | 43a4481e103d764d6f656f2ed1f5c57f8580858e (patch) | |
tree | a42cb13f38f5ffb3c2984fc9f0442b532c406dd7 /modules/luci-mod-status/luasrc/controller/admin | |
parent | e144356e5e74be6b845e8296c0fba775df986ee0 (diff) |
luci-mod-status: replace iptables controller actions with cgi-io calls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/luasrc/controller/admin')
-rw-r--r-- | modules/luci-mod-status/luasrc/controller/admin/status.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/luci-mod-status/luasrc/controller/admin/status.lua b/modules/luci-mod-status/luasrc/controller/admin/status.lua index 2684bdf715..e84f88d642 100644 --- a/modules/luci-mod-status/luasrc/controller/admin/status.lua +++ b/modules/luci-mod-status/luasrc/controller/admin/status.lua @@ -14,27 +14,6 @@ function action_dmesg() luci.template.render("admin_status/dmesg", {dmesg=dmesg}) end -function dump_iptables(family, table) - local prefix = (family == "6") and "ip6" or "ip" - local ok, lines = pcall(io.lines, "/proc/net/%s_tables_names" % prefix) - if ok and lines then - local s - for s in lines do - if s == table then - luci.http.prepare_content("text/plain") - luci.sys.process.exec({ - "/usr/sbin/%stables" % prefix, "-w", "-t", table, - "--line-numbers", "-nxvL" - }, luci.http.write) - return - end - end - end - - luci.http.status(404, "No such table") - luci.http.prepare_content("text/plain") -end - function action_iptables() if luci.http.formvalue("zero") then if luci.http.formvalue("family") == "6" then |