From 52c3b7c34e52534ab4f3c92b28d65f8713cda299 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Apr 2015 11:56:10 -0700 Subject: Implemented empirical determination of external addressing, paritioned per scope. --- node/IncomingPacket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/IncomingPacket.cpp') 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); -- cgit v1.2.3