mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 12:32:37 -04:00
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:
parent
db74c9ef58
commit
e23bd13bc9
4 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue