ucentral-event: fix radius rate limiting

Fixes: WIFI-12665
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-06-13 15:51:00 +02:00
parent 1e1c286f06
commit 78388a8ecf

View File

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