NetVM: harden up/down against zombie-netns interface strays
This commit is contained in:
@@ -50,6 +50,7 @@ done
|
||||
|
||||
# wireguard interface (wg setconf rejects wg-quick extensions: strip them)
|
||||
if ! nsexec ip link show "$WG" >/dev/null 2>&1; then
|
||||
ip link del "$WG" 2>/dev/null || true # stale host-side (reaped zombie netns)
|
||||
ip link add "$WG" type wireguard
|
||||
ip link set "$WG" netns "$NETNS"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user