From: Michael Tremer Date: Mon, 21 Oct 2024 16:38:46 +0000 (+0000) Subject: unbound-dhcp-leases-bridge: Don't export expired leases to Unbound X-Git-Tag: v2.29-core190~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17a9ad2f52e908c82929a5907f9e436b552c2ef0;p=ipfire-2.x.git unbound-dhcp-leases-bridge: Don't export expired leases to Unbound Signed-off-by: Michael Tremer Reviewed-by: Bernhard Bitsch Signed-off-by: Arne Fitzenreiter --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index 986fae2d24..bc944a0731 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -276,7 +276,7 @@ class UnboundDHCPLeasesBridge(object): if lease.has_expired(): log.debug(" Expired") - self.unbound.update_dhcp_leases(self.leases) + self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) def _add_lease(self, lease): # Skip leases without an FQDN