mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-08 09:14:40 +00:00
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 <bradfitz@tailscale.com>
This commit is contained in:
parent
a7be3a3d86
commit
e720b9824e
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user