From e720b9824e20b7b485d02498bd3bf696c1114752 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 30 Mar 2025 21:13:56 -0700 Subject: [PATCH] net/netcheck: use NoMeasureNoHome in another spot It only affected js/wasm and tamago. Updates tailscale/corp#24697 Change-Id: I8fd29323ed9b663fe3fd8d4a86f26ff584a3e134 Signed-off-by: Brad Fitzpatrick --- net/netcheck/netcheck.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/netcheck/netcheck.go b/net/netcheck/netcheck.go index a33ca2209..74c866d92 100644 --- a/net/netcheck/netcheck.go +++ b/net/netcheck/netcheck.go @@ -1045,7 +1045,7 @@ func (c *Client) finishAndStoreReport(rs *reportState, dm *tailcfg.DERPMap) *Rep } // runHTTPOnlyChecks is the netcheck done by environments that can -// only do HTTP requests, such as ws/wasm. +// only do HTTP requests, such as js/wasm. func (c *Client) runHTTPOnlyChecks(ctx context.Context, last *Report, rs *reportState, dm *tailcfg.DERPMap) error { var regions []*tailcfg.DERPRegion if rs.incremental && last != nil { @@ -1057,6 +1057,9 @@ func (c *Client) runHTTPOnlyChecks(ctx context.Context, last *Report, rs *report } if len(regions) == 0 { for _, dr := range dm.Regions { + if dr.NoMeasureNoHome { + continue + } regions = append(regions, dr) } }