mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2026-10-14 22:34:18 +03:00
device: fix persistent_keepalive_interval data races
Co-authored-by: David Anderson <danderson@tailscale.com> Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
1 parent
e1fa1cc556
commit
63066ce406
5 files changed
+22
-9
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ type Peer struct {
|
||||
handshake Handshake
|
||||
device *Device
|
||||
endpoint conn.Endpoint
|
||||
persistentKeepaliveInterval uint16
|
||||
persistentKeepaliveInterval uint32 // accessed atomically
|
||||
disableRoaming bool
|
||||
|
||||
// These fields are accessed with atomic operations, which must be
|
||||
|
||||
Reference in new issue
Block a user