Removed broken connection filtering
This commit is contained in:
parent
2e6c978e78
commit
93f3986d77
10
server.d
10
server.d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue