Removed broken connection filtering

This commit is contained in:
Hackerpilot 2013-10-18 12:28:55 -07:00
parent 2e6c978e78
commit 93f3986d77
1 changed files with 1 additions and 9 deletions

View File

@ -105,15 +105,7 @@ int main(string[] args)
auto s = socket.accept();
s.blocking = true;
if (s.remoteAddress.toHostNameString() != "localhost")
{
Log.error("Warning: Connection attempt from ",
s.remoteAddress.toHostNameString(), "ignored. DCD only accepts "
~ " requests from localhost");
s.shutdown(SocketShutdown.BOTH);
s.close();
continue;
}
// TODO: Restrict connections to localhost
scope (exit)
{