mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-17 14:11:16 +08:00
replay: minor API changes to more idiomatic Go
Signed-off-by: Riobard Zhan <me@riobard.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
22af3890f6
commit
2c143dce0f
@@ -567,7 +567,7 @@ func (peer *Peer) BeginSymmetricSession() error {
|
||||
|
||||
keypair.created = time.Now()
|
||||
keypair.sendNonce = 0
|
||||
keypair.replayFilter.Init()
|
||||
keypair.replayFilter.Reset()
|
||||
keypair.isInitiator = isInitiator
|
||||
keypair.localIndex = peer.handshake.localIndex
|
||||
keypair.remoteIndex = peer.handshake.remoteIndex
|
||||
|
Reference in New Issue
Block a user