netbird/client/internal/wgproxy
Zoltan Papp 0e95f16cdd
[relay,client] Relay/fix/wg roaming (#2691)
If a peer connection switches from Relayed to ICE P2P, the Relayed proxy still consumes the data the other peer sends. Because the proxy is operating, the WireGuard switches back to the Relayed proxy automatically, thanks to the roaming feature.

Extend the Proxy implementation with pause/resume functions. Before switching to the p2p connection, pause the WireGuard proxy operation to prevent unnecessary package sources.
Consider waiting some milliseconds after the pause to be sure the WireGuard engine already processed all UDP msg in from the pipe.
2024-10-11 16:24:30 +02:00
..
ebpf [relay,client] Relay/fix/wg roaming (#2691) 2024-10-11 16:24:30 +02:00
usp [relay,client] Relay/fix/wg roaming (#2691) 2024-10-11 16:24:30 +02:00
factory_linux.go [client] Close the remote conn in proxy (#2626) 2024-09-25 18:50:10 +02:00
factory_nonlinux.go [client] Close the remote conn in proxy (#2626) 2024-09-25 18:50:10 +02:00
proxy_test.go [relay,client] Relay/fix/wg roaming (#2691) 2024-10-11 16:24:30 +02:00
proxy.go [relay,client] Relay/fix/wg roaming (#2691) 2024-10-11 16:24:30 +02:00