wgengine/magicsock: don't do netchecks either when network is down

A continuation of 6ee219a25d

Updates #640
reviewable/pr792/r1
Brad Fitzpatrick 4 years ago
parent 6ee219a25d
commit 3e4c46259d

@ -460,7 +460,7 @@ func (c *Conn) updateNetInfo(ctx context.Context) (*netcheck.Report, error) {
dm := c.derpMap dm := c.derpMap
c.mu.Unlock() c.mu.Unlock()
if dm == nil { if dm == nil || c.networkDown() {
return new(netcheck.Report), nil return new(netcheck.Report), nil
} }

Loading…
Cancel
Save