From: Michael Tremer Date: Sat, 15 Oct 2016 17:06:27 +0000 (+0200) Subject: unbound-dhcp-bridge: Skip processing leases with empty hostname X-Git-Tag: v2.19-core108~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d4f3a42cea5e4224aa4ba469dd7bc182ece4b67;p=ipfire-2.x.git unbound-dhcp-bridge: Skip processing leases with empty hostname Signed-off-by: Michael Tremer --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index 78504f3fe2..70da1e0318 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -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):