Dnsmasq and expired leases

Hi,

I have clients that take dhcp leases via dnsmasq and I can see their entries in the "dhcp.leases" file, however if that lease has expired (say the client was off for a few days) and the client reconnects, the lease is never updated and sits in the leases file with a timestamp in the past.

e.g. In the system log I can see:

Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPDISCOVER(br-lan) <ip> <mac>
Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPOFFER(br-lan) <ip> <mac>
Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPDISCOVER(br-lan) <ip> <mac>
Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPOFFER(br-lan) <ip> <mac>
Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPREQUEST(br-lan) <ip> <mac>
Sat Jul 13 16:45:21 2019 daemon.info dnsmasq-dhcp[1407]: DHCPACK(br-lan) <ip> <mac> <hostname>

However in the dhcp.leases file I see nothing changed.

1562502989 <mac> <ip> <hostname> *

N.B. note the timestamp is in the past.

date -d @1562502989
Sun Jul  7 08:36:29 EDT 2019

This is a problem if the router is restarted as dnsmasq clears out all expired entries...

Known issue?