Implemented empirical determination of external addressing, paritioned per scope.

This commit is contained in:
Adam Ierymenko
2015-04-07 11:56:10 -07:00
parent 817824b88b
commit 52c3b7c34e
10 changed files with 102 additions and 95 deletions

View File

@ -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);