5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-09-20 03:42:32 +00:00

Start linkloop

This commit is contained in:
Neil Alexander 2019-01-05 00:52:41 +00:00
parent 4363283a6f
commit 1170ea9e98
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -47,6 +47,10 @@ func (l *awdl) create(boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey,
intf.send <- msg
l.core.switchTable.idleIn <- intf.peer.port
}
intf.peer.close = func() {
close(intf.send)
}
go intf.peer.linkLoop()
go intf.handler()
l.core.switchTable.idleIn <- intf.peer.port
return &intf