diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 11:56:10 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 11:56:10 -0700 |
| commit | 52c3b7c34e52534ab4f3c92b28d65f8713cda299 (patch) | |
| tree | 6a66f99b253059961a02e1fa07ebc9890ef91a61 /node/IncomingPacket.cpp | |
| parent | 817824b88bce8d2e5659226b80d3f232633c557f (diff) | |
| download | infinitytier-52c3b7c34e52534ab4f3c92b28d65f8713cda299.tar.gz infinitytier-52c3b7c34e52534ab4f3c92b28d65f8713cda299.zip | |
Implemented empirical determination of external addressing, paritioned per scope.
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 17eb09d9..e2819f0b 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -264,9 +264,9 @@ bool IncomingPacket::_doHELLO(const RuntimeEnvironment *RR) if (RR->topology->isSupernode(id.address())) { RR->node->postNewerVersionIfNewer(vMajor,vMinor,vRevision); - RR->sa->iam(destAddr,true); + RR->sa->iam(_remoteAddress,destAddr,true); } else { - RR->sa->iam(destAddr,false); + RR->sa->iam(_remoteAddress,destAddr,false); } Packet outp(id.address(),RR->identity.address(),Packet::VERB_OK); |
