statefiles: don't write expired leases
authorDavid Härdeman <[email protected]>
Sat, 8 Nov 2025 17:17:34 +0000 (18:17 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:31:14 +0000 (08:31 +0100)
commitbe9c9f895ab4d8067b81552c2529f17881af6503
treeb5cb86d5b8e0231e99fcccb412021f3ce1e1fa73
parentf6f2ef2de0459ef39baed68aabe2f3266a1a958d
statefiles: don't write expired leases

This also aligns the behaviour of state and host files.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/statefiles.c