aboutsummaryrefslogtreecommitdiffstats
path: root/receive.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-19 00:35:53 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-19 00:35:53 +0100
commita8326ae753975e73602958c1d7bbfe1174912ff9 (patch)
tree808003d8f9da84b5131b9f517fb04f492365abdd /receive.go
parentFreebsd is finally normal in sys/unix (diff)
downloadwireguard-go-a8326ae753975e73602958c1d7bbfe1174912ff9.tar.xz
wireguard-go-a8326ae753975e73602958c1d7bbfe1174912ff9.zip
Make error messages consistent
Diffstat (limited to '')
-rw-r--r--receive.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/receive.go b/receive.go
index b07d479..b22abf5 100644
--- a/receive.go
+++ b/receive.go
@@ -351,7 +351,10 @@ func (device *Device) RoutineHandshake() {
// consume reply
if peer := entry.peer; peer.isRunning.Get() {
- peer.cookieGenerator.ConsumeReply(&reply)
+ logDebug.Println("Receiving cookie response from ", elem.endpoint.DstToString())
+ if !peer.cookieGenerator.ConsumeReply(&reply) {
+ logDebug.Println("Could not decrypt invalid cookie response")
+ }
}
continue