This comment is slightly out of date: we do write to opers now.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9428 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-04-08 18:39:19 +00:00
parent ffa107c367
commit fc7dbbeb07

View File

@ -683,10 +683,6 @@ void TreeSocket::OnClose()
int TreeSocket::OnIncomingConnection(int newsock, char* ip)
{
/* To prevent anyone from attempting to flood opers/DDoS by connecting to the server port,
* or discovering if this port is the server port, we don't allow connections from any
* IPs for which we don't have a link block.
*/
bool found = false;
found = (std::find(Utils->ValidIPs.begin(), Utils->ValidIPs.end(), ip) != Utils->ValidIPs.end());