From 16844b935af98eaabf6db1db96a88ff39819a3df Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 29 Aug 2023 08:54:53 +0200 Subject: hotspot-to-wpa-cleanup: show last-seen, not timeout --- hotspot-to-wpa-cleanup.wifiwave2.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotspot-to-wpa-cleanup.wifiwave2.rsc') diff --git a/hotspot-to-wpa-cleanup.wifiwave2.rsc b/hotspot-to-wpa-cleanup.wifiwave2.rsc index 0433305..e316c17 100644 --- a/hotspot-to-wpa-cleanup.wifiwave2.rsc +++ b/hotspot-to-wpa-cleanup.wifiwave2.rsc @@ -61,7 +61,7 @@ $ScriptLock $0 false 10; server=$Server last-seen>$Timeout comment~"^hotspot-to-wpa:" ] do={ :local LeaseVal [ /ip/dhcp-server/lease/get $Lease ]; $LogPrintExit2 info $0 ("Client with mac address " . ($LeaseVal->"mac-address") . \ - " was not seen for " . $Timeout . ", removing.") false; + " was not seen for " . ($LeaseVal->"last-seen") . ", removing.") false; /interface/wifiwave2/access-list/remove [ find where comment~"^hotspot-to-wpa:" \ mac-address=($LeaseVal->"mac-address") ]; /ip/dhcp-server/lease/remove $Lease; -- cgit v1.2.3-54-g00ecf