disabled Relay connections, and enabled UDP connections.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-netupgrade@4464 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2011-07-18 08:37:11 +00:00
parent 96ec46478a
commit 619b2416ac
2 changed files with 5 additions and 2 deletions

View File

@ -126,7 +126,8 @@ p3BitDht::p3BitDht(std::string id, pqiConnectCb *cb, p3NetMgr *nm,
/* enable all modes */
mUdpBitDht->ConnectionOptions(
BITDHT_CONNECT_MODE_DIRECT | BITDHT_CONNECT_MODE_PROXY | BITDHT_CONNECT_MODE_RELAY,
// BITDHT_CONNECT_MODE_DIRECT | BITDHT_CONNECT_MODE_PROXY | BITDHT_CONNECT_MODE_RELAY,
BITDHT_CONNECT_MODE_DIRECT | BITDHT_CONNECT_MODE_PROXY,
BITDHT_CONNECT_OPTION_AUTOPROXY);
}

View File

@ -56,6 +56,9 @@ const int p3connectzone = 3431;
* #define LINKMGR_DEBUG_ACTIONS 1
***/
/****
* #define DISABLE_UDP_CONNECTIONS 1
***/
/****
* #define P3CONNMGR_NO_TCP_CONNECTIONS 1
@ -1283,7 +1286,6 @@ bool p3LinkMgrIMPL::tryConnectUDP(const std::string &id, struct sockaddr_in &r
{
#define DISABLE_UDP_CONNECTIONS 1
#ifdef DISABLE_UDP_CONNECTIONS
std::cerr << "p3LinkMgrIMPL::tryConnectUDP() CONNECTIONS DISABLED FOR NOW... id: " << id << std::endl;