From c5c235246b82530135352eef954e5ce477455f93 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 22 Mar 2023 09:16:16 +0100 Subject: dhcp-to-dns: add debug message on duplicate leases --- dhcp-to-dns.rsc | 1 + 1 file changed, 1 insertion(+) 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 ]; } -- cgit v1.2.3-70-g09d2