1
0
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:
DL6ER 2017-01-02 11:05:40 +01:00
parent 85f0241c0d
commit 677694b01a
No known key found for this signature in database
GPG Key ID: BB8EC0BC77973A30

View File

@ -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