From 93f3986d770c9e59d91c39cd85aef351e61f4c49 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Fri, 18 Oct 2013 12:28:55 -0700 Subject: [PATCH] Removed broken connection filtering --- server.d | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/server.d b/server.d index d6c0402..960a30b 100644 --- a/server.d +++ b/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) {