summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-22 10:54:58 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-22 10:54:58 -0800
commit42ba70e79e3f1484f7bdde5832658cbd179649dc (patch)
treedf4f5b0db4ab5d0bc66a2263baa2e4a9b94d1a42 /node/Switch.cpp
parentcbaef66e82eeec05dfb005bd34cafc0c1cb411f7 (diff)
downloadinfinitytier-42ba70e79e3f1484f7bdde5832658cbd179649dc.tar.gz
infinitytier-42ba70e79e3f1484f7bdde5832658cbd179649dc.zip
Replace long callback arg list with struct, and implement path whitelisting, path blacklisting, and local.conf support for roles.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index a5dd57e4..881d7b92 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -85,7 +85,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from
Address beaconAddr(reinterpret_cast<const char *>(data) + 8,5);
if (beaconAddr == RR->identity.address())
return;
- if (!RR->node->shouldUsePathForZeroTierTraffic(localAddr,fromAddr))
+ if (!RR->node->shouldUsePathForZeroTierTraffic(beaconAddr,localAddr,fromAddr))
return;
SharedPtr<Peer> peer(RR->topology->getPeer(beaconAddr));
if (peer) { // we'll only respond to beacons from known peers