We can re-enable special's security fix now - note this is good for boxes with one or more static ip's and still doesnt resolve the issue for smelly dynamic-ip users (well boo hoo :p)

git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4067 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-06-27 17:57:13 +00:00
parent 7dbd72891c
commit 1a574d0355

View File

@ -2690,9 +2690,7 @@ class TreeSocket : public InspSocket
/* To prevent anyone from attempting to flood opers/DDoS by connecting to the server port,
* or discovering if something even is the server port, we don't allow connections from any
* IPs for which we don't have a link block. -Special
*
* Do not uncomment this until we have a way to bind outbound sockets to an ip - Brain
*
*/
bool found = false;
vector<Link>::iterator i;
for (i = LinkBlocks.begin(); i != LinkBlocks.end(); i++)
@ -2709,7 +2707,6 @@ class TreeSocket : public InspSocket
close(newsock);
return false;
}
*/
TreeSocket* s = new TreeSocket(newsock, ip);
Srv->AddSocket(s);
return true;