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
This commit is contained in:
csoler 2010-06-28 12:12:24 +00:00
parent 7072ea5d92
commit 2d8ebef4d7

View File

@ -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;
}