From 1ee26e3ef26857d3fadbb3e430610ddcfce332ce Mon Sep 17 00:00:00 2001 From: drbob Date: Thu, 28 Jul 2011 13:05:20 +0000 Subject: [PATCH] disabled DIRECT UDP connections... 1) Not always stable, especially if you are firewalled. 2) not needed as a TCP connection can be made! git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4495 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/dht/p3bitdht.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/dht/p3bitdht.cc b/libretroshare/src/dht/p3bitdht.cc index 70bf9be46..8645ddbdf 100644 --- a/libretroshare/src/dht/p3bitdht.cc +++ b/libretroshare/src/dht/p3bitdht.cc @@ -125,9 +125,13 @@ p3BitDht::p3BitDht(std::string id, pqiConnectCb *cb, p3NetMgr *nm, mUdpBitDht->addCallback(bdcb); /* enable all modes */ + /* Switched to only Proxy Mode - as Direct Connections can be unreliable - as they share the UDP with the DHT.... + * We'll get these working properly and then if necessary get Direct further tested. + */ 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_DIRECT | BITDHT_CONNECT_MODE_PROXY, + BITDHT_CONNECT_MODE_PROXY, BITDHT_CONNECT_OPTION_AUTOPROXY); }