diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 10:57:59 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 10:57:59 -0700 |
| commit | 817824b88bce8d2e5659226b80d3f232633c557f (patch) | |
| tree | 61f0ea204332a13e5e11c2e0baf46d231c1390b1 /node/IncomingPacket.cpp | |
| parent | a2821e90007ac7af490f044f0c2579309f6c8a01 (diff) | |
| download | infinitytier-817824b88bce8d2e5659226b80d3f232633c557f.tar.gz infinitytier-817824b88bce8d2e5659226b80d3f232633c557f.zip | |
Some external surface awareness work, and IP scope classification.
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 99f66561..17eb09d9 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -264,7 +264,9 @@ bool IncomingPacket::_doHELLO(const RuntimeEnvironment *RR) if (RR->topology->isSupernode(id.address())) { RR->node->postNewerVersionIfNewer(vMajor,vMinor,vRevision); - RR->sa->iam(destAddr); + RR->sa->iam(destAddr,true); + } else { + RR->sa->iam(destAddr,false); } Packet outp(id.address(),RR->identity.address(),Packet::VERB_OK); |
