1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-06-18 13:45:26 +00:00
parent c96e4a6a49
commit 82c290983f

View file

@ -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