From fa23052ed477e42582c4d295895258e467a85f0b Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 8 Jul 2026 22:46:47 +0200 Subject: [PATCH] fix: Set default DHCP lease time to 1 hour (#1239) --- src/network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.sh b/src/network.sh index c0da394..02eb5a5 100644 --- a/src/network.sh +++ b/src/network.sh @@ -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"