diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-26 18:20:40 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-26 18:20:40 -0700 |
commit | e713f7a54c02915120ac3c32e0f28bd1dd744a80 (patch) | |
tree | 88406088a57a0f8af82793fb33646897016918c8 /node | |
parent | 98d856daa2488d3589cba058ec2d74e41dc53287 (diff) | |
download | infinitytier-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.cpp | 2 |
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; } |