DHCP Lease Time changes to seconds upon reenabling DHCP
Summary
The "Lease time (hours)" field on the LAN page shows the value incorrectly in seconds after disabling, then reenabling the DHCP server.
- Device: Turris Omnia
- reForis version: 1.4.1
- Turris OS version: 6.3.3
Steps To Reproduce
- Open reForis web UI.
- Go to Network Settings > LAN.
- Enable DHCP, and set "Lease time (hours)" field to 24, then click "Save". (See attached screenshot)
- Disable DHCP, then click "Save". (See attached screenshot).
- Enable DHCP, "Lease time (hours)" field becomes 86400 (which is in seconds, 86400 seconds = 24 hours). (See attached screenshot)
Expected Result
"Lease time (hours)" field should be consistent, and show the unit in hours (as the label claims that the unit is "hours"). In this case it should show the value 24.
Actual Result
"Lease time (hours) field incorrectly shows the value 86400.