Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c883ada commit f2bd8fbCopy full SHA for f2bd8fb
tailnet/conn.go
@@ -265,8 +265,9 @@ func (c *Conn) SetNodeCallback(callback func(node *Node)) {
265
c.lastMutex.Lock()
266
c.lastPreferredDERP = ni.PreferredDERP
267
c.lastDERPLatency = ni.DERPLatency
268
+ node := makeNode()
269
c.lastMutex.Unlock()
- callback(makeNode())
270
+ callback(node)
271
})
272
c.wireguardEngine.SetStatusCallback(func(s *wgengine.Status, err error) {
273
if err != nil {
@@ -278,8 +279,9 @@ func (c *Conn) SetNodeCallback(callback func(node *Node)) {
278
279
}
280
281
c.lastEndpoints = endpoints
282
283
284
285
286
287
0 commit comments