aboutsummaryrefslogtreecommitdiffstats
path: root/lib/un.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 13:45:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 13:45:26 +0000
commita34a28148a7a829088dffb8b24dfb9cb8af8fea1 (patch)
treeb81204af479f8f55908ac20eefaa300eff39390c /lib/un.rb
parentb071da3d8abe7e26693ee37557bca32964294835 (diff)
downloadruby-a34a28148a7a829088dffb8b24dfb9cb8af8fea1.tar.gz
un.rb: HTTP-alt by default
* lib/un.rb (httpd): changed default port number to 8080 (HTTP Alternate), which does not need root privilege. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/un.rb')
-rw-r--r--lib/un.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/un.rb b/lib/un.rb
index 487ba9eb75..aa991288c3 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -319,6 +319,7 @@ def httpd
[:Port, :MaxClients].each do |name|
opt = options[name] and (options[name] = Integer(opt)) rescue nil
end
+ options[:Port] ||= 8080 # HTTP Alternate
unless argv.size == 1
raise ArgumentError, "DocumentRoot is mandatory"
end