netbird/client/internal/stdnet
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
..
dialer.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
discover_mobile_test.go Ignore ipv6 labeled address (#809) 2023-04-14 15:40:27 +02:00
discover_mobile.go Update pion v3 (#1398) 2023-12-20 23:02:42 +01:00
discover_pion.go Update pion v3 (#1398) 2023-12-20 23:02:42 +01:00
discover.go Update pion v3 (#1398) 2023-12-20 23:02:42 +01:00
filter.go [client] Update local interface addresses when gathering candidates (#3324) 2025-02-21 19:44:50 +01:00
listener.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
stdnet.go [internal] Add missing assignment of iFaceDiscover when netstack is disabled (#4444) 2025-09-04 23:00:10 +02:00