aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.local
diff options
context:
space:
mode:
Diffstat (limited to 'collect-wireless-mac.local')
-rw-r--r--collect-wireless-mac.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local
index f8315f1..c38c2c1 100644
--- a/collect-wireless-mac.local
+++ b/collect-wireless-mac.local
@@ -27,7 +27,7 @@ $ScriptLock "collect-wireless-mac.local";
:local Address "no dhcp lease";
:local DnsName "no dhcp lease";
:local HostName "no dhcp lease";
- :local Lease [ / ip dhcp-server lease find where mac-address=$Mac ];
+ :local Lease [ / ip dhcp-server lease find where mac-address=$Mac dynamic=yes status=bound ];
:if ([ :len $Lease ] > 0) do={
:set Address [ / ip dhcp-server lease get $Lease address ];
:set HostName [ / ip dhcp-server lease get $Lease host-name ];