diff options
author | Josh Bleecher Snyder <josh@tailscale.com> | 2020-12-14 15:28:52 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-01-07 14:49:44 +0100 |
commit | 63066ce4062a85224821ce302e3eb8c34e95a658 (patch) | |
tree | f6945216e1b48bc5404f612cdcc5564b12e93aae /device/peer.go | |
parent | e1fa1cc5560020e67d33aa7e74674853671cf0a0 (diff) |
device: fix persistent_keepalive_interval data races
Co-authored-by: David Anderson <danderson@tailscale.com>
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/peer.go')
-rw-r--r-- | device/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/peer.go b/device/peer.go index c2397cc..31b75c7 100644 --- a/device/peer.go +++ b/device/peer.go @@ -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 |