This commit is contained in:
Neil Alexander 2019-01-04 17:23:37 +00:00
parent f29a098488
commit 3878197a59
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -2,6 +2,7 @@ package yggdrasil
import (
"sync"
"github.com/yggdrasil-network/yggdrasil-go/src/crypto"
)
@ -40,7 +41,7 @@ func (l *awdl) create(boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey,
l.mutex.Lock()
l.interfaces[name] = &intf
l.mutex.Unlock()
intf.peer.linkOut = make(chan []byte, 1) // protocol traffic
intf.peer.linkOut = make(chan []byte, 1)
intf.peer.out = func(msg []byte) {
defer func() { recover() }()
intf.send <- msg