rrmd: make the global_ban option default:true

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-11-20 14:09:48 +01:00
parent b60c18ea3d
commit d2af552c5a

View File

@@ -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 });