Skip to content

Commit

Permalink
Update region latency mappings to measure HTTPs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Sep 1, 2022
1 parent 2ed2977 commit 2c5af58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/netcheck/netcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,11 @@ func (c *Client) GetReport(ctx context.Context, dm *tailcfg.DERPMap) (_ *Report,
// random which fields end up getting set here.
// Since they're not needed, that's fine for now.
if ip.Is4() {
updateLatency(rs.report.RegionV4Latency, reg.RegionID, d)
rs.report.IPv4 = true
}
if ip.Is6() {
updateLatency(rs.report.RegionV6Latency, reg.RegionID, d)
rs.report.IPv6 = true
}
rs.mu.Unlock()
Expand Down

0 comments on commit 2c5af58

Please sign in to comment.