tailscale/wgengine
Mihai Parparita 7330aa593e all: avoid repeated default interface lookups
On some platforms (notably macOS and iOS) we look up the default
interface to bind outgoing connections to. This is both duplicated
work and results in logspam when the default interface is not available
(i.e. when a phone has no connectivity, we log an error and thus cause
more things that we will try to upload and fail).

Fixed by passing around a netmon.Monitor to more places, so that we can
use its cached interface state.

Fixes #7850
Updates #7621

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2023-04-20 15:46:01 -07:00
..
bench all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
capture various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
filter all: use tstest.Replace more 2023-03-04 12:24:55 -08:00
magicsock all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
netlog all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
netstack wgengine/netstack: fix data-race on startup 2023-04-10 09:13:21 -07:00
router all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
wgcfg tailcfg: make SelfNodeV4MasqAddrForThisPeer a pointer 2023-04-13 11:28:33 -07:00
wgint all: update copyright and license headers 2023-01-27 15:36:29 -08:00
wglog all: update copyright and license headers 2023-01-27 15:36:29 -08:00
winnet all: update copyright and license headers 2023-01-27 15:36:29 -08:00
mem_ios.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pendopen.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
userspace_ext_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
watchdog_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
wgengine.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00