mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Merge pull request #1646 from pi-hole/bugfix/DoubleH
Stop an extra `h` being added to leasetime of DHCP server.
This commit is contained in:
commit
106d5afba1
1 changed files with 6 additions and 1 deletions
|
@ -261,7 +261,12 @@ ProcessDHCPSettings() {
|
||||||
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
||||||
leasetime="infinite"
|
leasetime="infinite"
|
||||||
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
||||||
leasetime="24h"
|
leasetime="24"
|
||||||
|
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||||
|
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"
|
||||||
change_setting "DHCP_LEASETIME" "${leasetime}"
|
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||||
else
|
else
|
||||||
leasetime="${DHCP_LEASETIME}h"
|
leasetime="${DHCP_LEASETIME}h"
|
||||||
|
|
Loading…
Reference in a new issue