Harden PUSH_DIRECT_PATHS and simplify things by only doing it on receive when hops>0 and trust has been established.
This commit is contained in:
parent
63e8ad4cc3
commit
c476285bd6
4 changed files with 135 additions and 137 deletions
|
@ -761,11 +761,6 @@ bool Switch::_trySend(const Packet &packet,bool encrypt)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (relay) {
|
||||
peer->pushDirectPaths(viaPath->localAddress(),viaPath->address(),now,false);
|
||||
viaPath->sent(now);
|
||||
}
|
||||
|
||||
Packet tmp(packet);
|
||||
|
||||
unsigned int chunkSize = std::min(tmp.size(),(unsigned int)ZT_UDP_DEFAULT_PAYLOAD_MTU);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue