uspot: make CoA work with radius-gw-proxy

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-10-02 18:50:52 +02:00
parent fcc7b8dfac
commit ebdce386e4

View File

@@ -361,7 +361,7 @@ function accounting(interface) {
function hapd_subscriber_notify_cb(notify) { function hapd_subscriber_notify_cb(notify) {
if (notify.type != 'coa') if (notify.type != 'coa')
return 0; return 0;
notify.data.address = uc(notify.data.address); notify.data.address = uc(split(notify.data.address, ':')[0]);
let iface = interface_find(notify.data.address); let iface = interface_find(notify.data.address);
if (!iface) if (!iface)
return 0; return 0;