mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-12-02 21:11:59 +00:00
Start linkloop
This commit is contained in:
@@ -47,6 +47,10 @@ func (l *awdl) create(boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey,
|
|||||||
intf.send <- msg
|
intf.send <- msg
|
||||||
l.core.switchTable.idleIn <- intf.peer.port
|
l.core.switchTable.idleIn <- intf.peer.port
|
||||||
}
|
}
|
||||||
|
intf.peer.close = func() {
|
||||||
|
close(intf.send)
|
||||||
|
}
|
||||||
|
go intf.peer.linkLoop()
|
||||||
go intf.handler()
|
go intf.handler()
|
||||||
l.core.switchTable.idleIn <- intf.peer.port
|
l.core.switchTable.idleIn <- intf.peer.port
|
||||||
return &intf
|
return &intf
|
||||||
|
|||||||
Reference in New Issue
Block a user