wgengine/magicsock: remove premature return in handshakeServerEndpoint (#16351)

Any return underneath this select case must belong to a type switch case.

Updates tailscale/corp#27502

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited 2025-06-23 08:53:29 -07:00 committed by GitHub
parent 0198255266
commit 9288efe592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -691,7 +691,6 @@ func (r *relayManager) handshakeServerEndpoint(work *relayHandshakeWork) {
// unexpected message type, silently discard
continue
}
return
case <-timer.C:
// The handshake timed out.
return