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();
|
auto s = socket.accept();
|
||||||
s.blocking = true;
|
s.blocking = true;
|
||||||
|
|
||||||
if (s.remoteAddress.toHostNameString() != "localhost")
|
// TODO: Restrict connections to localhost
|
||||||
{
|
|
||||||
Log.error("Warning: Connection attempt from ",
|
|
||||||
s.remoteAddress.toHostNameString(), "ignored. DCD only accepts "
|
|
||||||
~ " requests from localhost");
|
|
||||||
s.shutdown(SocketShutdown.BOTH);
|
|
||||||
s.close();
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
scope (exit)
|
scope (exit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue