mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 20:06:05 +00:00
fix: Set default DHCP lease time to 1 hour (#1239)
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user