mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
wgengine/magicsock: don't do netchecks either when network is down
A continuation of 6ee219a25de5dee623e94e7aedec4be41d1dd6fe Updates #640
This commit is contained in:
parent
6ee219a25d
commit
3e4c46259d
@ -460,7 +460,7 @@ func (c *Conn) updateNetInfo(ctx context.Context) (*netcheck.Report, error) {
|
||||
dm := c.derpMap
|
||||
c.mu.Unlock()
|
||||
|
||||
if dm == nil {
|
||||
if dm == nil || c.networkDown() {
|
||||
return new(netcheck.Report), nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user