mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-02 22:52:33 -08:00
wgengine/magicsock: don't do netchecks either when network is down
A continuation of 6ee219a25d
Updates #640
This commit is contained in:
1 parent
6ee219a25d
commit
3e4c46259d
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user