Skip to content

Commit aa558fb

Browse files
fix: netcheck nil map (#57)
1 parent 012f023 commit aa558fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgengine/magicsock/magicsock.go

+2
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,8 @@ func (c *Conn) updateNetInfo(ctx context.Context) (*netcheck.Report, error) {
668668

669669
ni := &tailcfg.NetInfo{
670670
DERPLatency: map[string]float64{},
671+
DERPLatencyV4: map[int]float64{},
672+
DERPLatencyV6: map[int]float64{},
671673
MappingVariesByDestIP: report.MappingVariesByDestIP,
672674
HairPinning: report.HairPinning,
673675
UPnP: report.UPnP,

0 commit comments

Comments
 (0)