mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-30 07:43:42 +00:00
net/udprelay: remove unnecessary breaks
Signed-off-by: Dylan Bargatze <dylan@tailscale.com>
This commit is contained in:
parent
033c1199d7
commit
748190a04f
@ -239,10 +239,8 @@ func (e *serverEndpoint) handlePacket(from netip.AddrPort, gh packet.GeneveHeade
|
||||
switch e.status.ClientPingStatus[0] {
|
||||
case endpoint.DiscoPingNotStarted:
|
||||
e.status.ClientPingStatus[0] = endpoint.DiscoPingSeen
|
||||
break
|
||||
case endpoint.DiscoPingSeen:
|
||||
e.status.ClientPingStatus[0] = endpoint.DiscoPongSeen
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
@ -254,10 +252,8 @@ func (e *serverEndpoint) handlePacket(from netip.AddrPort, gh packet.GeneveHeade
|
||||
switch e.status.ClientPingStatus[1] {
|
||||
case endpoint.DiscoPingNotStarted:
|
||||
e.status.ClientPingStatus[1] = endpoint.DiscoPingSeen
|
||||
break
|
||||
case endpoint.DiscoPingSeen:
|
||||
e.status.ClientPingStatus[1] = endpoint.DiscoPongSeen
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user