mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
cleanup
This commit is contained in:
parent
bb3ae8b39b
commit
0470f6f1c1
5 changed files with 1 additions and 80 deletions
|
@ -223,8 +223,6 @@ func (p *peer) sendPacket(packet []byte) {
|
|||
func (p *peer) sendLinkPacket(packet []byte) {
|
||||
bs, nonce := boxSeal(&p.shared, packet, nil)
|
||||
linkPacket := wire_linkProtoTrafficPacket{
|
||||
//toKey: p.box,
|
||||
//fromKey: p.core.boxPub,
|
||||
nonce: *nonce,
|
||||
payload: bs,
|
||||
}
|
||||
|
@ -237,12 +235,6 @@ func (p *peer) handleLinkTraffic(bs []byte) {
|
|||
if !packet.decode(bs) {
|
||||
return
|
||||
}
|
||||
//if packet.toKey != p.core.boxPub {
|
||||
// return
|
||||
//}
|
||||
//if packet.fromKey != p.box {
|
||||
// return
|
||||
//}
|
||||
payload, isOK := boxOpen(&p.shared, packet.payload, &packet.nonce)
|
||||
if !isOK {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue