diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-16 21:41:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-16 21:41:29 +0000 |
commit | 992bc68b2b9d95d7fa46eeef42a67cd51291701d (patch) | |
tree | 4370f2ecfb1d910ae29846b7b969d84ad448335d /applications/luci-splash/luasrc/view | |
parent | 65cde286cc146be7dea165c2cb34732cb8953a57 (diff) |
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
Diffstat (limited to 'applications/luci-splash/luasrc/view')
-rw-r--r-- | applications/luci-splash/luasrc/view/admin_status/splash.htm | 12 |
1 files changed, 5 insertions, 7 deletions
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 |