summaryrefslogtreecommitdiffhomepage
path: root/src/send.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-07 15:25:04 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-07 15:25:04 +0200
commitcba1d6585ab9b12ae3e0897db85675ba452c3f09 (patch)
tree13d0975bf53a107c2760c833fd07f36d860a338a /src/send.go
parent8c34c4cbb3780c433148966a004f5a51aace0f64 (diff)
Number of fixes in response to code review
This version cannot complete a handshake. The program will panic upon receiving any message on the UDP socket.
Diffstat (limited to 'src/send.go')
-rw-r--r--src/send.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/send.go b/src/send.go
index fc35732..cf1f018 100644
--- a/src/send.go
+++ b/src/send.go
@@ -168,8 +168,6 @@ func (device *Device) RoutineReadFromTUN() {
continue
}
- println(size, err)
-
elem.packet = elem.packet[:size]
// lookup peer
@@ -210,6 +208,7 @@ func (device *Device) RoutineReadFromTUN() {
// insert into nonce/pre-handshake queue
+ signalSend(peer.signal.handshakeReset)
addToOutboundQueue(peer.queue.nonce, elem)
elem = nil