mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
ucentral-event: fix radius rate limiting
Fixes: WIFI-12665 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -93,8 +93,8 @@ let handlers = {
|
||||
address: notify.data.address,
|
||||
};
|
||||
if (notify.data['rate-limit']) {
|
||||
msg.rate_ingress = notify.data['rate-limit'][0] / 1000000;
|
||||
msg.rate_egress = notify.data['rate-limit'][1] / 1000000;
|
||||
msg.rate_ingress = `${notify.data['rate-limit'][0]}`;
|
||||
msg.rate_egress = `${notify.data['rate-limit'][1]}`;
|
||||
} else
|
||||
msg.defaults = hapd.ssid;
|
||||
ubus.call('ratelimit', 'client_set', msg);
|
||||
|
||||
Reference in New Issue
Block a user