netbird/sharedsock
Viktor Liu 55126f990c
[client] Use native windows sock opts to avoid routing loops (#4314)
- Move `util/grpc` and `util/net` to `client` so `internal` packages can be accessed
 - Add methods to return the next best interface after the NetBird interface.
- Use `IP_UNICAST_IF` sock opt to force the outgoing interface for the NetBird `net.Dialer` and `net.ListenerConfig` to avoid routing loops. The interface is picked by the new route lookup method.
- Some refactoring to avoid import cycles
- Old behavior is available through `NB_USE_LEGACY_ROUTING=true` env var
2025-09-20 09:31:04 +02:00
..
example [client] Add flag to configure MTU (#4213) 2025-08-26 16:00:14 +02:00
filter.go Add sharedsock example (#1116) 2023-08-31 17:01:32 +02:00
sock_linux_test.go [client] Add flag to configure MTU (#4213) 2025-08-26 16:00:14 +02:00
sock_linux.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
sock_nolinux.go [client] Add flag to configure MTU (#4213) 2025-08-26 16:00:14 +02:00
stun_filter_linux.go Add sharedsock example (#1116) 2023-08-31 17:01:32 +02:00
stun_filter_nolinux.go Add sharedsock example (#1116) 2023-08-31 17:01:32 +02:00