Instead of using binary packet comparison, add a callback to the API to explicitly check whether paths should be used. Check in with this callback (if present) when learning new paths or sending initial packets.
This commit is contained in:
parent
ba2a89c760
commit
b3e3d4cacc
8 changed files with 131 additions and 13 deletions
|
@ -156,7 +156,7 @@ void Peer::received(
|
|||
}
|
||||
}
|
||||
|
||||
if (!pathIsConfirmed) {
|
||||
if ((!pathIsConfirmed)&&(RR->node->shouldUsePathForZeroTierTraffic(localAddr,remoteAddr))) {
|
||||
if (verb == Packet::VERB_OK) {
|
||||
|
||||
Path *slot = (Path *)0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue