mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
copy/paste old flowkey logic into a util function, add a struct of key and packet, make WriteNoCopy accept this instead of a slice
This commit is contained in:
parent
6cb0ed91ad
commit
790524bd1c
5 changed files with 105 additions and 52 deletions
|
@ -166,7 +166,7 @@ func (r *router) handleTraffic(packet []byte) {
|
|||
return
|
||||
}
|
||||
select {
|
||||
case sinfo.fromRouter <- &p:
|
||||
case sinfo.fromRouter <- p:
|
||||
case <-sinfo.cancel.Finished():
|
||||
util.PutBytes(p.Payload)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue