diff --git a/internal/dhcp4d/dhcp4d.go b/internal/dhcp4d/dhcp4d.go index 5ab55e0..857d1ce 100644 --- a/internal/dhcp4d/dhcp4d.go +++ b/internal/dhcp4d/dhcp4d.go @@ -213,7 +213,7 @@ func (h *Handler) serveDHCP(p dhcp4.Packet, msgType dhcp4.MessageType, options d } // offer previous lease for this HardwareAddr, if any - if lease, ok := h.leasesHW[hwAddr]; ok { + if lease, ok := h.leasesHW[hwAddr]; ok && !lease.Expired(h.timeNow()) { free = lease.Num }