Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2022-10-02 00:50:39 +0300
committerGitHub <noreply@github.com>2022-10-02 00:50:39 +0300
commit77f0012f6bee525a32de44397aa9c68efba90756 (patch)
treef6a642e3297d95a5660996ef5a7cda71108b7258
parent71b560667b9a08758acb4d6d5d1a4f653717c2ca (diff)
parentb7b5ffa8dd9d1c2f8a99271394f9ad4722b66345 (diff)
Fix default DHCPv4 leasetime value (#4956)
-rwxr-xr-xadvanced/Scripts/webpage.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh
index 3ee48aef..e02e03f9 100755
--- a/advanced/Scripts/webpage.sh
+++ b/advanced/Scripts/webpage.sh
@@ -393,13 +393,8 @@ ProcessDHCPSettings() {
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
leasetime="infinite"
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
- leasetime="24"
- addOrEditKeyValPair "${setupVars}" "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"
- addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "${leasetime}"
+ leasetime="24h"
+ addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "24"
else
leasetime="${DHCP_LEASETIME}h"
fi