mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Fix default DHCPv4 leasetime value (#4956)
This commit is contained in:
commit
77f0012f6b
@ -393,13 +393,8 @@ ProcessDHCPSettings() {
|
|||||||
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
||||||
leasetime="infinite"
|
leasetime="infinite"
|
||||||
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
||||||
leasetime="24"
|
leasetime="24h"
|
||||||
addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "${leasetime}"
|
addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "24"
|
||||||
elif [[ "${DHCP_LEASETIME}" == "24h" ]]; then
|
|
||||||
#Installation is affected by known bug, introduced in a previous version.
|
|
||||||
#This will automatically clean up setupVars.conf and remove the unnecessary "h"
|
|
||||||
leasetime="24"
|
|
||||||
addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "${leasetime}"
|
|
||||||
else
|
else
|
||||||
leasetime="${DHCP_LEASETIME}h"
|
leasetime="${DHCP_LEASETIME}h"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user