mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
rrmd: make the global_ban option default:true
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -12,6 +12,8 @@ function result(error, event, text, data) {
|
||||
const actions = {
|
||||
// ubus call rrm command '{"action": "kick", "addr": "1c:57:dc:37:3c:b1", "reason": 5, "ban_time": 30, "global_ban": true }'
|
||||
kick: function(msg) {
|
||||
if (!exists(msg, 'global_ban'))
|
||||
msg.global_ban = true;
|
||||
if (!global.station.kick(msg))
|
||||
return result(1, msg.event, 'station ' + msg.addr + ' is unknown', { action: 'kick', addr: msg.addr });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user