[FS#3915] Expiration time for leases populated incorrectly in dhcp.leases

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Wed Jul 7 00:57:34 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#3915 - Expiration time for leases populated incorrectly in dhcp.leases
User who did this - Jo-Philipp Wich (jow-)

----------
Did you build yourself? The HAVE_BROKEN_RTC build option should be disabled by default in official builds. LuCI currently expects UNIX timestamps in the expiration time column and not relative reamining validity times.

I am considering adding some heuristics to workaround the problem. Basically if the expire value is smaller than a specific cutoff date (say 2020-01-01, 1577833200) then treat it as relative, else as absolute expiration value, then act accordingly.

However it is low priority since the broken RTC flag is not a default configuration. If you want to give it a stab yourself, then the relevant code would be here: https://github.com/openwrt/luci/blob/master/libs/rpcd-mod-luci/src/luci.c#L534
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3915#comment9899

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list