diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 07:11:59 -0500 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 07:11:59 -0500 |
| commit | 4419734a7db21cd6a9ee8aba911f220cbecba085 (patch) | |
| tree | 93bda7e55ef906db246434509eb5334513c27b87 /node/Switch.cpp | |
| parent | f821db29f34d040d59b6118164bf3c7242959a0e (diff) | |
| download | infinitytier-4419734a7db21cd6a9ee8aba911f220cbecba085.tar.gz infinitytier-4419734a7db21cd6a9ee8aba911f220cbecba085.zip | |
Implement continuous contacting of designated anchors and multicast replicators - GitHub issue #666
Diffstat (limited to 'node/Switch.cpp')
| -rw-r--r-- | node/Switch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index c3626f9f..6ffeced4 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -91,7 +91,7 @@ void Switch::onRemotePacket(void *tPtr,const int64_t localSocket,const InetAddre const Address destination(fragment.destination()); if (destination != RR->identity.address()) { - if ( (!RR->topology->amRoot()) && (!path->trustEstablished(now)) ) + if ( (!RR->topology->amUpstream()) && (!path->trustEstablished(now)) ) return; if (fragment.hops() < ZT_RELAY_MAX_HOPS) { @@ -162,7 +162,7 @@ void Switch::onRemotePacket(void *tPtr,const int64_t localSocket,const InetAddre return; if (destination != RR->identity.address()) { - if ( (!RR->topology->amRoot()) && (!path->trustEstablished(now)) && (source != RR->identity.address()) ) + if ( (!RR->topology->amUpstream()) && (!path->trustEstablished(now)) && (source != RR->identity.address()) ) return; Packet packet(data,len); |
