aboutsummaryrefslogtreecommitdiffstats
path: root/hotspot-to-wpa-cleanup.capsman.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'hotspot-to-wpa-cleanup.capsman.rsc')
-rw-r--r--hotspot-to-wpa-cleanup.capsman.rsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/hotspot-to-wpa-cleanup.capsman.rsc b/hotspot-to-wpa-cleanup.capsman.rsc
index 45ea72b..e935850 100644
--- a/hotspot-to-wpa-cleanup.capsman.rsc
+++ b/hotspot-to-wpa-cleanup.capsman.rsc
@@ -61,8 +61,9 @@
}
:foreach Server,Timeout in=$DHCPServers do={
+ :local TimeoutExtra ($Timeout + [ /system/clock/get time ]);
:foreach Lease in=[ /ip/dhcp-server/lease/find where !dynamic status="waiting" \
- server=$Server last-seen>$Timeout comment~"^hotspot-to-wpa:" ] do={
+ server=$Server last-seen>$TimeoutExtra comment~"^hotspot-to-wpa:" ] do={
:local LeaseVal [ /ip/dhcp-server/lease/get $Lease ];
$LogPrint info $ScriptName ("Client with mac address " . ($LeaseVal->"mac-address") . \
" was not seen for " . ($LeaseVal->"last-seen") . ", removing.");