mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-26 10:57:34 +02:00
Align 64-bit atomics
64-bit varibles that are accessed using the Go atomic functions must be 8-byte aligned on 32-bit platforms. Otherwise there are crashes.
This commit is contained in:
parent
6cecaf3157
commit
099219be2a
2 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ import (
|
|||
*/
|
||||
|
||||
type KeyPair struct {
|
||||
sendNonce uint64
|
||||
send cipher.AEAD
|
||||
receive cipher.AEAD
|
||||
replayFilter ReplayFilter
|
||||
sendNonce uint64
|
||||
isInitiator bool
|
||||
created time.Time
|
||||
localIndex uint32
|
||||
|
|
2
peer.go
2
peer.go
|
@ -13,9 +13,9 @@ const (
|
|||
)
|
||||
|
||||
type Peer struct {
|
||||
persistentKeepaliveInterval uint64
|
||||
isRunning AtomicBool
|
||||
mutex sync.RWMutex
|
||||
persistentKeepaliveInterval uint64
|
||||
keyPairs KeyPairs
|
||||
handshake Handshake
|
||||
device *Device
|
||||
|
|
Loading…
Add table
Reference in a new issue