From d2af552c5a072b9fb18f19a9ae1edfc690a3a63a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 20 Nov 2023 14:09:48 +0100 Subject: [PATCH] rrmd: make the global_ban option default:true Signed-off-by: John Crispin --- feeds/ucentral/rrmd/files/usr/share/rrmd/command.uc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/command.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/command.uc index eb1586a08..5a22d1f68 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/command.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/command.uc @@ -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 });