fix: Set default DHCP lease time to 1 hour (#1239)

This commit is contained in:
Kroese
2026-07-08 22:46:47 +02:00
committed by GitHub
parent cc3267f258
commit fa23052ed4
+2 -2
View File
@@ -52,7 +52,7 @@ ADD_ERR="Please add the following setting to your container:"
isNAT() {
case "${NETWORK,,}" in
"tap" | "tun" | "tuntap" | "y" | "" )
"nat" | "tap" | "tun" | "tuntap" | "y" | "" )
return 0 ;;
*)
return 1 ;;
@@ -347,7 +347,7 @@ configureDNS() {
# Set DHCP range and host
arguments+=" --dhcp-range=$ip,$ip"
arguments+=" --dhcp-host=$mac,,$ip,$host,infinite"
arguments+=" --dhcp-host=$mac,,$ip,$host,1h"
# Set DNS server and gateway
arguments+=" --dhcp-option=option:netmask,$mask"