aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.local.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'collect-wireless-mac.local.rsc')
-rw-r--r--collect-wireless-mac.local.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/collect-wireless-mac.local.rsc b/collect-wireless-mac.local.rsc
index 23eb9fa..fa8fe8d 100644
--- a/collect-wireless-mac.local.rsc
+++ b/collect-wireless-mac.local.rsc
@@ -51,9 +51,9 @@ $ScriptLock $0 false 10;
: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=($RegVal->"mac-address") dynamic=yes status=bound ]->0);
+ :local Lease ([ /ip/dhcp-server/lease/find where active-mac-address=($RegVal->"mac-address") dynamic=yes status=bound ]->0);
:if ([ :len $Lease ] > 0) do={
- :set Address [ /ip/dhcp-server/lease/get $Lease address ];
+ :set Address [ /ip/dhcp-server/lease/get $Lease active-address ];
:set HostName [ $EitherOr [ /ip/dhcp-server/lease/get $Lease host-name ] "no hostname" ];
:set DnsName "no dns name";
:local DnsRec ([ /ip/dns/static/find where address=$Address ]->0);