mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
fix: Set default DHCP lease time to 1 hour (#1239)
This commit is contained in:
1 parent
cc3267f258
commit
fa23052ed4
1 file changed
+2
-2
+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