NetVM: fix wg setconf to take config filename (not stdin)

This commit is contained in:
Antigravity Agent
2026-10-03 00:33:37 -04:00
parent 8ba8e3d7ec
commit 9fb2990d73
+1 -1
View File
@@ -12,7 +12,7 @@ chmod 600 "$CONF"
ip netns add "$NETNS" 2>/dev/null || true ip netns add "$NETNS" 2>/dev/null || true
ip link add "wg-${NODE}" type wireguard 2>/dev/null || true ip link add "wg-${NODE}" type wireguard 2>/dev/null || true
ip link set "wg-${NODE}" netns "$NETNS" ip link set "wg-${NODE}" netns "$NETNS"
ip netns exec "$NETNS" wg setconf "wg-${NODE}" < "$CONF" ip netns exec "$NETNS" wg setconf "wg-${NODE}" "$CONF"
ip netns exec "$NETNS" ip link set lo up ip netns exec "$NETNS" ip link set lo up
ip netns exec "$NETNS" ip link set "wg-${NODE}" up ip netns exec "$NETNS" ip link set "wg-${NODE}" up
# NOTE: addresses/routes come from the generated config (wgcf carries them). # NOTE: addresses/routes come from the generated config (wgcf carries them).