diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 00faa9cee..c4e97aa3f 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -3314,15 +3314,10 @@ void peerConnectState::updateIpAddressList(IpAddressTimed ipTimed) { //purge old } void peerConnectState::printIpAddressList() { -#ifdef CONN_DEBUG - std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl; -#endif + std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl; for (std::list::iterator ipListIt = ipAddressList.begin(); ipListIt!=(ipAddressList.end()); ipListIt++) { -#ifdef CONN_DEBUG std::cerr << inet_ntoa(ipListIt->ipAddr.sin_addr) << ":" << ntohs(ipListIt->ipAddr.sin_port) << " seenTime : " << ipListIt->seenTime << std::endl; -#endif } - } bool peerConnectState::extractExtAddress(std::list IpAddressTimedList, IpAddressTimed &resultAddress) {//extract first address that is not the same as local address diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 5f306faf2..873ca5b50 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -521,7 +521,10 @@ void p3disc::sendPeerDetails(std::string to, std::string about) } // Send off message - sendItem(di); +#ifdef P3DISC_DEBUG + di->print(std::cerr, 5); +#endif + sendItem(di); #ifdef P3DISC_DEBUG std::cerr << "Sent DI Message" << std::endl;