mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
* Extra Debugging for DHT integration.
* Moved bootstrap location from current directory to CONFIG/bdboot.txt * Corrected DHT OwnId. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3579 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
90daeacc36
commit
6cf3521e0b
2 changed files with 99 additions and 8 deletions
|
@ -2194,11 +2194,15 @@ int RsServer::StartupRetroShare()
|
|||
rsUdpStack *mUdpStack = new rsUdpStack(tmpladdr);
|
||||
|
||||
#ifdef RS_USE_BITDHT
|
||||
std::string id = "idon't know?";
|
||||
std::string bootstrapfile = "./bdboot.txt";
|
||||
std::string bootstrapfile = RsInitConfig::configDir.c_str();
|
||||
if (bootstrapfile != "")
|
||||
{
|
||||
bootstrapfile += "/";
|
||||
}
|
||||
bootstrapfile += "bdboot.txt";
|
||||
|
||||
p3BitDht *mBitDht = new p3BitDht(id, mConnMgr, mUdpStack, bootstrapfile);
|
||||
//mUdpStack-stack->addReceiver(udps);
|
||||
p3BitDht *mBitDht = new p3BitDht(ownId, mConnMgr,
|
||||
mUdpStack, bootstrapfile);
|
||||
|
||||
/* construct the rest of the stack */
|
||||
tou_init(mUdpStack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue