From 7d140227aa7915dfe9137a69d9c14a95f28a4898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Wed, 2 Jan 2013 16:07:32 +0100 Subject: [PATCH] Bind server to 127.0.0.1 instead of * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise all your js and css files would be accessible from other machines in the same network. --- bin/djsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/djsd b/bin/djsd index 8689dc1..1d77cd5 100755 --- a/bin/djsd +++ b/bin/djsd @@ -55,7 +55,7 @@ dotjs = Class.new(WEBrick::HTTPServlet::AbstractServlet) do end end -server = WEBrick::HTTPServer.new(:Port => 3131, :AccessLog => []) +server = WEBrick::HTTPServer.new(:BindAddress => "127.0.0.1", :Port => 3131, :AccessLog => []) server.mount('/', dotjs) %w( INT TERM ).each do |sig|