summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 18:20:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 18:20:40 -0700
commite713f7a54c02915120ac3c32e0f28bd1dd744a80 (patch)
tree88406088a57a0f8af82793fb33646897016918c8 /node
parent98d856daa2488d3589cba058ec2d74e41dc53287 (diff)
downloadinfinitytier-e713f7a54c02915120ac3c32e0f28bd1dd744a80.tar.gz
infinitytier-e713f7a54c02915120ac3c32e0f28bd1dd744a80.zip
Can redirect in response to a few more verbs, just not these.
Diffstat (limited to 'node')
-rw-r--r--node/Peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 6cd9baab..4f2fe931 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -81,7 +81,7 @@ void Peer::received(
Packet::Verb inReVerb)
{
#ifdef ZT_ENABLE_CLUSTER
- if ((RR->cluster)&&(hops == 0)&&((verb == Packet::VERB_HELLO)||(verb == Packet::VERB_FRAME)||(verb == Packet::VERB_EXT_FRAME)||(verb == Packet::VERB_MULTICAST_FRAME))) {
+ if ((RR->cluster)&&(hops == 0)&&(verb != VERB_OK)&&(verb != VERB_ERROR)&&(verb != VERB_RENDEZVOUS)&&(verb != VERB_PUSH_DIRECT_PATHS)) {
if (RR->cluster->redirectPeer(SharedPtr<Peer>(this),localAddr,remoteAddr,false))
return;
}