From 992bc68b2b9d95d7fa46eeef42a67cd51291701d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 16 Jun 2009 21:41:29 +0000 Subject: applications/luci-splash: - use kilobyte/s for rate limiting - reject traffic instead of silently dropping it - allow unsplashed access to the mesh - add possibility to specify non-splashed destination networks - reorganize iptables rules --- applications/luci-splash/luasrc/view/admin_status/splash.htm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'applications/luci-splash/luasrc/view/admin_status') diff --git a/applications/luci-splash/luasrc/view/admin_status/splash.htm b/applications/luci-splash/luasrc/view/admin_status/splash.htm index 20ea25b873..4690e33486 100644 --- a/applications/luci-splash/luasrc/view/admin_status/splash.htm +++ b/applications/luci-splash/luasrc/view/admin_status/splash.htm @@ -58,13 +58,11 @@ for _, r in ipairs(ipt:find({table="nat", chain="luci_splash_leases"})) do end end -for _, r in ipairs(ipt:find({table="filter", chain="luci_splash_counter"})) do - if r.options and #r.options >= 2 and r.options[1] == "MAC" then - local c = clients[r.options[2]:lower()] - if c and c.packets == 0 then - c.bytes = tonumber(r.bytes) - c.packets = tonumber(r.packets) - end +for _, r in ipairs(ipt:find({table="filter", chain="luci_splash_filter", options={"MAC"}})) do + local c = clients[r.options[2]:lower()] + if c and c.packets == 0 then + c.bytes = tonumber(r.bytes) + c.packets = tonumber(r.packets) end end -- cgit v1.2.3