NetVM: harden up/down against zombie-netns interface strays

This commit is contained in:
Antigravity Agent
2026-10-03 00:37:43 -04:00
parent c3d85377ba
commit ecb9c50f86
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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