Package: rails
Version: 2.3.5-1
Severity: minor
Tags: patch
Hi,
--help for server.rb is wrong about the ip on with it binds. By default
it's 0.0.0.0 but it has been patched to only listen on 127.0.0.1.
The help needs to reflect that.
Regards
Laurent Bigonville
diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb
index b35c687..5a4762a 100644
--- a/railties/lib/commands/server.rb
+++ b/railties/lib/commands/server.rb
@@ -25,7 +25,7 @@ ARGV.clone.options do |opts|
opts.on("-p", "--port=port", Integer,
"Runs Rails on the specified port.", "Default: 3000") { |v| options[:Port] = v }
opts.on("-b", "--binding=ip", String,
- "Binds Rails to the specified ip.", "Default: 0.0.0.0") { |v| options[:Host] = v }
+ "Binds Rails to the specified ip.", "Default: 127.0.0.1") { |v| options[:Host] = v }
opts.on("-c", "--config=file", String,
"Use custom rackup configuration file") { |v| options[:config] = v }
opts.on("-d", "--daemon", "Make server run as a Daemon.") { options[:detach] = true }