diff options
author | 2016-07-07 02:32:40 +0200 | |
---|---|---|
committer | 2016-07-07 02:33:29 +0200 | |
commit | 90169a4ddf900aa5f9e4c891a57e226160b4134e (patch) | |
tree | 7ecdc581860755f1d2efb1966111c0b259e33465 /contrib/external-tests | |
parent | go test: make more idiomatic (diff) | |
download | wireguard-monolithic-historical-90169a4ddf900aa5f9e4c891a57e226160b4134e.tar.xz wireguard-monolithic-historical-90169a4ddf900aa5f9e4c891a57e226160b4134e.zip |
go test: put nonce at correct location
Diffstat (limited to 'contrib/external-tests')
-rw-r--r-- | contrib/external-tests/go/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/external-tests/go/main.go b/contrib/external-tests/go/main.go index 86fe192..a06b565 100644 --- a/contrib/external-tests/go/main.go +++ b/contrib/external-tests/go/main.go @@ -80,7 +80,7 @@ func main() { keepalivePacket := make([]byte, 13) keepalivePacket[0] = 4 // Type: Data binary.LittleEndian.PutUint32(keepalivePacket[1:], theirIndex) - binary.LittleEndian.PutUint64(keepalivePacket[3:], 0) // Nonce + binary.LittleEndian.PutUint64(keepalivePacket[5:], 0) // Nonce keepalivePacket = sendCipher.Encrypt(keepalivePacket, nil, nil) if _, err := conn.Write(keepalivePacket); err != nil { log.Fatalf("error writing keepalive packet: %s", err) |