diff --git a/libretroshare/src/dht/connectstatebox.cc b/libretroshare/src/dht/connectstatebox.cc index f6a164d03..14f62bb1e 100644 --- a/libretroshare/src/dht/connectstatebox.cc +++ b/libretroshare/src/dht/connectstatebox.cc @@ -783,7 +783,7 @@ uint32_t PeerConnectStateBox::updateCb(uint32_t update) { case CSB_UPDATE_CONNECTED: { - if ((mState == CSB_DIRECT_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT)) + if ((mState == CSB_DIRECT_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT) || (mState == CSB_RELAY_ATTEMPT)) { mAttemptLength = now - mStateTS; } diff --git a/libretroshare/src/dht/p3bitdht_peernet.cc b/libretroshare/src/dht/p3bitdht_peernet.cc index f40234f09..c7bb4dfc2 100644 --- a/libretroshare/src/dht/p3bitdht_peernet.cc +++ b/libretroshare/src/dht/p3bitdht_peernet.cc @@ -718,20 +718,10 @@ int p3BitDht::ConnectCallback(const bdId *srcId, const bdId *proxyId, const bdId mNetMgr->getNetworkMode(), mNetMgr->getNatHoleMode(), mNetMgr->getNatTypeMode())); } - if (exclusivePort) - { #ifdef DEBUG_PEERNET - std::cerr << "dhtConnectionCallback: we Require Exclusive Proxy Port for connection"; - std::cerr << std::endl; + if (exclusivePort) std::cerr << "dhtConnectionCallback: we Require Exclusive Proxy Port for connection" << std::endl; + else std::cerr << "dhtConnectionCallback: Dont need Exclusive Proxy Port for connection" << std::endl; #endif - } - else - { -#ifdef DEBUG_PEERNET - std::cerr << "dhtConnectionCallback: Dont need Exclusive Proxy Port for connection"; - std::cerr << std::endl; -#endif - } connectOk = true; }