mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-12 13:03:41 +08:00
@@ -156,11 +156,15 @@ closeNetwork () {
|
||||
|
||||
if [[ "$DHCP" == [Yy1]* ]]; then
|
||||
|
||||
{ pkill -f server.sh || true; } 2>/dev/null
|
||||
|
||||
ip link set "$VM_NET_TAP" down || true
|
||||
ip link delete "$VM_NET_TAP" || true
|
||||
|
||||
else
|
||||
|
||||
{ pkill -f dnsmasq || true; } 2>/dev/null
|
||||
|
||||
ip link set "$VM_NET_TAP" down promisc off || true
|
||||
ip link delete "$VM_NET_TAP" || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user