mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-02 16:04:52 +08:00
fix: Remove nat option (#1068)
Some checks failed
Update / dockerHubDescription (push) Has been cancelled
Some checks failed
Update / dockerHubDescription (push) Has been cancelled
This commit is contained in:
parent
b1a778d7b2
commit
6158372eaa
@ -131,7 +131,7 @@ configureDNS() {
|
|||||||
rm -f "$log"
|
rm -f "$log"
|
||||||
|
|
||||||
case "${NETWORK,,}" in
|
case "${NETWORK,,}" in
|
||||||
"nat" | "tap" | "tun" | "tuntap" | "y" )
|
"tap" | "tun" | "tuntap" | "y" )
|
||||||
|
|
||||||
# Create lease file for faster resolve
|
# Create lease file for faster resolve
|
||||||
echo "0 $mac $ip $host 01:$mac" > /var/lib/misc/dnsmasq.leases
|
echo "0 $mac $ip $host 01:$mac" > /var/lib/misc/dnsmasq.leases
|
||||||
@ -786,7 +786,7 @@ else
|
|||||||
|
|
||||||
case "${NETWORK,,}" in
|
case "${NETWORK,,}" in
|
||||||
"user"* | "passt" | "slirp" ) ;;
|
"user"* | "passt" | "slirp" ) ;;
|
||||||
"nat" | "tap" | "tun" | "tuntap" | "y" )
|
"tap" | "tun" | "tuntap" | "y" )
|
||||||
|
|
||||||
# Configure tap interface
|
# Configure tap interface
|
||||||
if ! configureNAT; then
|
if ! configureNAT; then
|
||||||
@ -803,7 +803,7 @@ else
|
|||||||
[[ "${NETWORK,,}" == "user"* ]] && NETWORK="passt"
|
[[ "${NETWORK,,}" == "user"* ]] && NETWORK="passt"
|
||||||
|
|
||||||
case "${NETWORK,,}" in
|
case "${NETWORK,,}" in
|
||||||
"nat" | "tap" | "tun" | "tuntap" | "y" ) ;;
|
"tap" | "tun" | "tuntap" | "y" ) ;;
|
||||||
"passt" )
|
"passt" )
|
||||||
|
|
||||||
# Configure for user-mode networking (passt)
|
# Configure for user-mode networking (passt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user