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:
parent
c96e4a6a49
commit
82c290983f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue