mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
ffa107c367
commit
fc7dbbeb07
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user