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>
pull/16356/head
Jordan Whited 5 months ago committed by GitHub
parent 0198255266
commit 9288efe592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save