diff options
author | Christian Hesse <mail@eworm.de> | 2023-06-08 21:58:06 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-06-08 21:58:32 +0200 |
commit | 964ec39a68310a2ccd4c097dd486182f933ba8c8 (patch) | |
tree | 7adfc87aaea0ad79bff2dab0f3b61b15ad318317 /collect-wireless-mac.capsman.rsc | |
parent | 2593f6ba30bdd50272a7d5dad4f2e078c9d1bd6a (diff) |
collect-wireless-mac: use 'active-' properties from lease
Diffstat (limited to 'collect-wireless-mac.capsman.rsc')
-rw-r--r-- | collect-wireless-mac.capsman.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collect-wireless-mac.capsman.rsc b/collect-wireless-mac.capsman.rsc index 094ffc0..c6cae9c 100644 --- a/collect-wireless-mac.capsman.rsc +++ b/collect-wireless-mac.capsman.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); |