diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 13:45:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 13:45:26 +0000 |
commit | 82c290983ff45227d002f81bb9fa1e0e64ba9f34 (patch) | |
tree | b81204af479f8f55908ac20eefaa300eff39390c /lib | |
parent | c96e4a6a499de8d82b1862be41e6d3c1c0e05ef2 (diff) | |
download | ruby-82c290983ff45227d002f81bb9fa1e0e64ba9f34.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')
-rw-r--r-- | lib/un.rb | 1 |
1 files changed, 1 insertions, 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 |