wireguard-go-awg2-lx/device
Jordan Whited 24483d7a00 conn,device: always perform PeerAwareEndpoint check
It was previously suppressed if roaming was disabled for the peer.
Tailscale always disables roaming as we explicitly configure
conn.Endpoint's for all peers.

This commit also modifies PeerAwareEndpoint usage such that wireguard-go
never uses/sets it as a Peer Endpoint value. In theory we (Tailscale)
always disable roaming, so we should always return early from
SetEndpointFromPacket(), but this acts as an extra footgun guard and
improves clarity around intended usage.

Updates tailscale/corp#27502
Updates tailscale/corp#29422
Updates tailscale/corp#30042

Signed-off-by: Jordan Whited <jordan@tailscale.com>
2025-07-01 15:37:56 -07:00
..
allowedips.go global: bump copyright year 2023-02-07 20:39:29 -03:00
allowedips_rand_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
allowedips_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
bind_test.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
channels.go device: move Queue{In,Out}boundElement Mutex to container type 2023-09-29 15:32:56 -07:00
constants.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
cookie.go global: bump copyright year 2023-02-07 20:39:29 -03:00
cookie_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
device.go device: fix possible deadlock in close method 2025-05-29 10:43:47 -07:00
device_test.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
endpoint_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
indextable.go global: bump copyright year 2023-02-07 20:39:29 -03:00
ip.go global: bump copyright year 2023-02-07 20:39:29 -03:00
kdf_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
keypair.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
logger.go global: bump copyright year 2023-02-07 20:39:29 -03:00
mobilequirks.go device: change Peer.endpoint locking to reduce contention 2023-11-21 10:48:58 -08:00
noise-helpers.go device: uniformly check ECDH output for zeros 2023-02-16 16:33:14 +01:00
noise-protocol.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
noise-types.go global: bump copyright year 2023-02-07 20:39:29 -03:00
noise_test.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
peer.go conn,device: always perform PeerAwareEndpoint check 2025-07-01 15:37:56 -07:00
pools.go device: fix WaitPool sync.Cond usage 2024-06-27 10:12:25 -07:00
pools_test.go device: fix WaitPool sync.Cond usage 2024-06-27 10:12:25 -07:00
queueconstants_android.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
queueconstants_default.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
queueconstants_ios.go global: bump copyright year 2023-02-07 20:39:29 -03:00
queueconstants_windows.go global: bump copyright year 2023-02-07 20:39:29 -03:00
race_disabled_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
race_enabled_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
receive.go device: reduce RoutineHandshake allocations 2025-05-29 10:43:47 -07:00
send.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
sticky_default.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
sticky_linux.go device: change Peer.endpoint locking to reduce contention 2023-11-21 10:48:58 -08:00
timers.go device: change Peer.endpoint locking to reduce contention 2023-11-21 10:48:58 -08:00
tun.go all: rename module (#7) 2023-09-27 15:03:39 -07:00
uapi.go device: change Peer.endpoint locking to reduce contention 2023-11-21 10:48:58 -08:00