diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-18 16:44:23 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-18 16:44:23 -0700 |
commit | cecfa99b7bf13b8231a5a8141e723b57a8e5e3cd (patch) | |
tree | 6dca05b59a5403ab42387969c389f921dbdd4f1e /node/Peer.cpp | |
parent | b3cac538cced1f9596c24a48dff0cf4b17147e20 (diff) | |
download | infinitytier-cecfa99b7bf13b8231a5a8141e723b57a8e5e3cd.tar.gz infinitytier-cecfa99b7bf13b8231a5a8141e723b57a8e5e3cd.zip |
(1) cluster members send a flag indicating that a PUSH_DIRECT_PATHS is a cluster redirect, (2) 1.1.5 uses this to avoid a bug (this bug does not exist in 1.1.4)
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 87ca94e1..6c935e0a 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -81,7 +81,7 @@ void Peer::received( // For newer peers we can send a more idiomatic verb: PUSH_DIRECT_PATHS. Packet outp(_id.address(),RR->identity.address(),Packet::VERB_PUSH_DIRECT_PATHS); outp.append((uint16_t)1); // count == 1 - outp.append((uint8_t)0); // no flags + outp.append((uint8_t)ZT_PUSH_DIRECT_PATHS_FLAG_CLUSTER_REDIRECT); // flags: cluster redirect outp.append((uint16_t)0); // no extensions if (redirectTo.ss_family == AF_INET) { outp.append((uint8_t)4); |