@@ -56,11 +56,11 @@ type phased struct {
56
56
57
57
type configMaps struct {
58
58
phased
59
- netmapDirty bool
60
- derpMapDirty bool
61
- filterDirty bool
62
- closing bool
63
- waitForHandshake bool
59
+ netmapDirty bool
60
+ derpMapDirty bool
61
+ filterDirty bool
62
+ closing bool
63
+ waitReadyForHandshake bool
64
64
65
65
engine engineConfigurable
66
66
static netmap.NetworkMap
@@ -219,7 +219,7 @@ func (c *configMaps) peerConfigLocked() []*tailcfg.Node {
219
219
for _ , p := range c .peers {
220
220
// Don't add nodes that we havent received a READY_FOR_HANDSHAKE for
221
221
// yet, if we want to wait for them.
222
- if ! p .readyForHandshake && c .waitForHandshake {
222
+ if ! p .readyForHandshake && c .waitReadyForHandshake {
223
223
continue
224
224
}
225
225
n := p .node .Clone ()
@@ -234,7 +234,7 @@ func (c *configMaps) peerConfigLocked() []*tailcfg.Node {
234
234
func (c * configMaps ) setWaitForHandshake (wait bool ) {
235
235
c .L .Lock ()
236
236
defer c .L .Unlock ()
237
- c .waitForHandshake = wait
237
+ c .waitReadyForHandshake = wait
238
238
}
239
239
240
240
// setAddresses sets the addresses belonging to this node to the given slice. It
@@ -413,9 +413,9 @@ func (c *configMaps) updatePeerLocked(update *proto.CoordinateResponse_PeerUpdat
413
413
node : node ,
414
414
lastHandshake : lastHandshake ,
415
415
lost : false ,
416
- readyForHandshake : ! c .waitForHandshake ,
416
+ readyForHandshake : ! c .waitReadyForHandshake ,
417
417
}
418
- if c .waitForHandshake {
418
+ if c .waitReadyForHandshake {
419
419
lc .readyForHandshakeTimer = c .clock .AfterFunc (5 * time .Second , func () {
420
420
logger .Debug (context .Background (), "ready for handshake timeout" )
421
421
c .peerReadyForHandshakeTimeout (id )
0 commit comments