[DRE-commits] [SCM] rails-2.3.git branch, debian-sid, updated. 0288d3496b551d2b35d0233f10713cb4d65bf2d6

Ondřej Surý ondrej at sury.org
Fri Jun 10 14:27:39 UTC 2011


The following commit has been merged in the debian-sid branch:
commit f62539c6ce910c35d6ae91e81ad50592bc09a533
Author: Ondřej Surý <ondrej at sury.org>
Date:   Tue Jun 7 14:59:36 2011 +0200

    Change default listen address to 127.0.0.1

diff --git a/debian/patches/0003-change_default_listen_address.patch b/debian/patches/0003-change_default_listen_address.patch
new file mode 100644
index 0000000..cd23761
--- /dev/null
+++ b/debian/patches/0003-change_default_listen_address.patch
@@ -0,0 +1,20 @@
+--- a/lib/commands/server.rb
++++ b/lib/commands/server.rb
+@@ -13,7 +13,7 @@ end
+ 
+ options = {
+   :Port        => 3000,
+-  :Host        => "0.0.0.0",
++  :Host        => "127.0.0.1",
+   :environment => (ENV['RAILS_ENV'] || "development").dup,
+   :config      => RAILS_ROOT + "/config.ru",
+   :detach      => false,
+@@ -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 }
diff --git a/debian/patches/series b/debian/patches/series
index b9406ab..3595096 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-remove_require_rubygems.patch
+0003-change_default_listen_address.patch

-- 
rails-2.3.git



More information about the Pkg-ruby-extras-commits mailing list