mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
unbound-dhcp-bridge: Skip processing leases with empty hostname
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -114,6 +114,10 @@ class UnboundDHCPLeasesBridge(object):
|
||||
leases = []
|
||||
|
||||
for lease in DHCPLeases(self.leases_file):
|
||||
# Don't bother with any leases that don't have a hostname
|
||||
if not lease.fqdn:
|
||||
continue
|
||||
|
||||
leases.append(lease)
|
||||
|
||||
for lease in FixLeases(self.fix_leases_file):
|
||||
|
||||
Reference in New Issue
Block a user