mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 22:47:30 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user