diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-11 10:17:44 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-11 10:17:44 -0800 |
| commit | b3e3d4cacca37a4850e4e1a91fb8c42a5b13cb26 (patch) | |
| tree | 0fbeba94f3021f8d55ada20c5ed8d193f574d70f /node/Peer.cpp | |
| parent | ba2a89c760f9bfa4936f3cf89155aafd047af917 (diff) | |
| download | infinitytier-b3e3d4cacca37a4850e4e1a91fb8c42a5b13cb26.tar.gz infinitytier-b3e3d4cacca37a4850e4e1a91fb8c42a5b13cb26.zip | |
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.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 04e5bdf0..c75a3e46 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -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; |
