added server-based ip determination as a fallback to existing methods. Forced Dht publishing as soon as an external ip is known

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1109 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-04-03 09:21:20 +00:00
parent db74c9ef58
commit e23bd13bc9
4 changed files with 22 additions and 2 deletions

View file

@ -198,6 +198,7 @@ bool p3DhtMgr::setExternalInterface(
ownEntry.raddr = raddr;
ownEntry.type = type;
ownEntry.state = DHT_PEER_ADDR_KNOWN; /* will force republish */
ownEntry.lastTS = 0; /* will force republish */
#ifdef DHT_DEBUG
std::cerr << "p3DhtMgr::setExternalInterface()";
@ -224,6 +225,7 @@ bool p3DhtMgr::setExternalInterface(
dhtMtx.unlock(); /* UNLOCK MUTEX */
checkOwnDHTKeys();
return true;
}