tailscale/ipn/ipnlocal
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
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
c2n.go net/sockstats: expose debug info 2023-04-19 14:33:12 -07:00
cert.go ipn/ipnlocal: use atomicfile.WriteFile in certFileStore 2023-03-23 17:35:44 -07:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
dnsconfig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
expiry_test.go ci: add more lints (#7909) 2023-04-19 21:54:19 -04:00
local.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
local_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
loglines_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
network-lock.go cmd/tailscale: surface node-key for locked out tailnet-lock peers 2023-03-09 11:06:23 -10:00
network-lock_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
peerapi.go ipn/ipnlocal: handle masquerade addresses in PeerAPI 2023-04-19 15:51:44 -07:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
profiles.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_test.go .github/workflows: reenable Windows CI, disable broken tests 2023-04-14 14:13:53 -07:00
profiles_windows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
serve.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
serve_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
state_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00