mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Set 24h lease time if settings was empty before
This commit is contained in:
parent
85f0241c0d
commit
677694b01a
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue