From 85104eb47e25abb103b4f27e037a2392e617593c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 24 May 2022 16:38:09 +0200 Subject: [PATCH] add ipv4 leases into the associations list Signed-off-by: John Crispin --- system/state.uc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/state.uc b/system/state.uc index fb31ce9..9261617 100755 --- a/system/state.uc +++ b/system/state.uc @@ -294,8 +294,12 @@ cursor.foreach("network", "interface", function(d) { ssid.mode = iface.mode; ssid.bssid = iface.bssid; - if (length(stations[vap.ifname])) + if (length(stations[vap.ifname])) { ssid.associations = stations[vap.ifname]; + for (let assoc in ssid.associations) + if (length(ip4leases[assic.station])) + assoc.ipaddr_v4 = ip4leases[mac]; + } ssid.iface = vap.ifname;