diff options
author | Christian Hesse <mail@eworm.de> | 2023-03-22 09:16:16 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-03-22 21:53:32 +0100 |
commit | c5c235246b82530135352eef954e5ce477455f93 (patch) | |
tree | eb852277c6bd13e6971933ff514adb5717ae02c8 /dhcp-to-dns.rsc | |
parent | 8c728bb6ab7ad27c223af536be50438d51ee360c (diff) |
dhcp-to-dns: add debug message on duplicate leases
Diffstat (limited to 'dhcp-to-dns.rsc')
-rw-r--r-- | dhcp-to-dns.rsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index 8f5b842..8166b0c 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -71,6 +71,7 @@ $ScriptLock $0 false 10; :local DupMacLeases [ /ip/dhcp-server/lease/find where mac-address=($LeaseVal->"mac-address") status=bound ]; :if ([ :len $DupMacLeases ] > 1) do={ + $LogPrintExit2 debug $0 ("Multiple bound leases found for mac-address " . ($LeaseVal->"mac-address") . ", using ip address of last one.") false; :set ($LeaseVal->"address") [ /ip/dhcp-server/lease/get ($DupMacLeases->([ :len $DupMacLeases ] - 1)) address ]; } |