tailscale/cmd/derper
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
..
bootstrap_dns_test.go all: use tstest.Replace more 2023-03-04 12:24:55 -08:00
bootstrap_dns.go util/slicesx: add package for generic slice functions, use 2023-03-03 16:25:48 -05:00
cert.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
depaware.txt all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
derper_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
derper.go derp,magicsock: add debug envknobs for HTTP and derp server name (#7744) 2023-04-04 17:10:50 -07:00
mesh.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
websocket.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00