diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-02 15:28:38 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-02 15:28:38 +0200 |
commit | 2aa0daf4d58ffc930fde611e7efe6ae3c9515130 (patch) | |
tree | d99a2a65be02ab3b6d4a965ab4f1d6165a981549 /src/receive.go | |
parent | 1e620427bd01b1e897c57752359f7dbb28e34bff (diff) |
Fixed transport header problem
Diffstat (limited to 'src/receive.go')
-rw-r--r-- | src/receive.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/receive.go b/src/receive.go index ab28944..5afbf7f 100644 --- a/src/receive.go +++ b/src/receive.go @@ -75,6 +75,7 @@ func (device *Device) RoutineReceiveIncomming() { // handle packet packet = packet[:size] + debugLog.Println("GOT:", packet) msgType := binary.LittleEndian.Uint32(packet[:4]) func() { @@ -371,6 +372,8 @@ func (peer *Peer) RoutineSequentialReceiver() { // check for replay + // strip padding + // check for keep-alive if len(elem.packet) == 0 { @@ -393,8 +396,6 @@ func (device *Device) RoutineWriteToTUN(tun TUNDevice) { case packet = <-device.queue.inbound: } - device.log.Debug.Println("GOT:", packet) - size, err := tun.Write(packet) device.log.Debug.Println("DEBUG:", size, err) if err != nil { |