summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-17 06:41:52 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-17 06:41:52 -0400
commitce14ba90045afa711506983c07ecc7e31c53f833 (patch)
tree18161a28a34f26e2544b497b61a6afb0b871dac2 /node/Switch.cpp
parent555471200c10f0b208b658dc460068ef64d8dbe2 (diff)
downloadinfinitytier-ce14ba90045afa711506983c07ecc7e31c53f833.tar.gz
infinitytier-ce14ba90045afa711506983c07ecc7e31c53f833.zip
Take the 0.6.0 opportunity to add flags to a few protocol verbs and do a bit more cleanup. Also fix it so certificates wont be accepted unless they are newer than existing ones.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index f6fe4e3a..c6cd7987 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -265,6 +265,7 @@ bool Switch::unite(const Address &p1,const Address &p2,bool force)
{ // tell p1 where to find p2
Packet outp(p1,_r->identity.address(),Packet::VERB_RENDEZVOUS);
+ outp.append((unsigned char)0);
p2.appendTo(outp);
outp.append((uint16_t)cg.first.port());
if (cg.first.isV6()) {
@@ -279,6 +280,7 @@ bool Switch::unite(const Address &p1,const Address &p2,bool force)
}
{ // tell p2 where to find p1
Packet outp(p2,_r->identity.address(),Packet::VERB_RENDEZVOUS);
+ outp.append((unsigned char)0);
p1.appendTo(outp);
outp.append((uint16_t)cg.second.port());
if (cg.second.isV6()) {