From 2d8ebef4d7458e16c1b10099c95d41c7559b8dff Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 28 Jun 2010 12:12:24 +0000 Subject: [PATCH] suppressed 255.255.255.255 from admitted IP adresses. This one comes out when errors occur down the IP estimation code. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3231 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3connmgr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 264b2e27b..378dbef83 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -3477,10 +3477,10 @@ void peerConnectState::updateIpAddressList(const IpAddressTimed& ipTimed) return ; } - if(ipTimed.ipAddr.sin_addr.s_addr == 0 || ipTimed.ipAddr.sin_addr.s_addr == 1 || ipTimed.ipAddr.sin_port == 0) + if(ipTimed.ipAddr.sin_addr.s_addr == 0 || (ipTimed.ipAddr.sin_addr.s_addr == ~0u) || ipTimed.ipAddr.sin_addr.s_addr == 1 || ipTimed.ipAddr.sin_port == 0) { #ifdef CONN_DEBUG - std::cerr << "peerConnectState::updateIpAdressList() ip parameter is 0.0.0.0, or port is 0, ignoring." << std::endl; + std::cerr << "peerConnectState::updateIpAdressList() ip parameter is 0.0.0.0 or 255.255.255.255, or port is 0, ignoring." << std::endl; #endif return; }