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) {