mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
net/udprelay: remove unnecessary breaks
Signed-off-by: Dylan Bargatze <dylan@tailscale.com>
This commit is contained in:
parent
591e1d8290
commit
e6936e2da0
@ -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