aboutsummaryrefslogtreecommitdiffstats
path: root/src/device.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-07 13:47:09 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-07 13:47:09 +0200
commited31e757392d1f8a907250b19c64b59451c440db (patch)
treef4279f1555bbfadcace402332b75f01c5c6935f4 /src/device.go
parentFixed broken test (diff)
downloadwireguard-go-ed31e757392d1f8a907250b19c64b59451c440db.tar.xz
wireguard-go-ed31e757392d1f8a907250b19c64b59451c440db.zip
Fixed cookie reply processing bug
Diffstat (limited to 'src/device.go')
-rw-r--r--src/device.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.go b/src/device.go
index c577623..882d587 100644
--- a/src/device.go
+++ b/src/device.go
@@ -25,8 +25,8 @@ type Device struct {
queue struct {
encryption chan *QueueOutboundElement
decryption chan *QueueInboundElement
+ inbound chan *QueueInboundElement
handshake chan QueueHandshakeElement
- inbound chan []byte // inbound queue for TUN
}
signal struct {
stop chan struct{}
@@ -77,10 +77,10 @@ func NewDevice(tun TUNDevice, logLevel int) *Device {
// create queues
- device.queue.encryption = make(chan *QueueOutboundElement, QueueOutboundSize)
device.queue.handshake = make(chan QueueHandshakeElement, QueueHandshakeSize)
+ device.queue.encryption = make(chan *QueueOutboundElement, QueueOutboundSize)
device.queue.decryption = make(chan *QueueInboundElement, QueueInboundSize)
- device.queue.inbound = make(chan []byte, QueueInboundSize)
+ device.queue.inbound = make(chan *QueueInboundElement, QueueInboundSize)
// prepare signals