mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-20 15:18:32 +00:00
Set 24h lease time if settings was empty before
This commit is contained in:
parent
85f0241c0d
commit
677694b01a
@ -191,6 +191,9 @@ ProcessDHCPSettings() {
|
||||
|
||||
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
||||
leasetime="infinite"
|
||||
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
||||
leasetime="24"
|
||||
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||
else
|
||||
leasetime="${DHCP_LEASETIME}h"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user