mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
unbound-dhcp-bridge: Make leases unique by IP address
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -222,7 +222,7 @@ class DHCPLeases(object):
|
||||
# exists in the list of known leases. If so replace
|
||||
# if with the most recent lease
|
||||
for i, l in enumerate(leases):
|
||||
if l.hwaddr == lease.hwaddr:
|
||||
if l.ipaddr == lease.ipaddr:
|
||||
leases[i] = max(lease, l)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user