wgengine/magicsock: set rxDiscoMsgCh field in relayHandshakeWork (#16349)

Updates tailscale/corp#27502

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited 2025-06-21 19:09:19 -07:00 committed by GitHub
parent cd9b9a8cad
commit e935a28a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -567,11 +567,12 @@ func (r *relayManager) handleNewServerEndpointRunLoop(newServerEndpoint newRelay
// We're ready to start a new handshake. // We're ready to start a new handshake.
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
work := &relayHandshakeWork{ work := &relayHandshakeWork{
ep: newServerEndpoint.ep, ep: newServerEndpoint.ep,
se: newServerEndpoint.se, se: newServerEndpoint.se,
doneCh: make(chan relayEndpointHandshakeWorkDoneEvent, 1), rxDiscoMsgCh: make(chan relayHandshakeDiscoMsgEvent),
ctx: ctx, doneCh: make(chan relayEndpointHandshakeWorkDoneEvent, 1),
cancel: cancel, ctx: ctx,
cancel: cancel,
} }
if byServerDisco == nil { if byServerDisco == nil {
byServerDisco = make(map[key.DiscoPublic]*relayHandshakeWork) byServerDisco = make(map[key.DiscoPublic]*relayHandshakeWork)