[前][次][番号順一覧][スレッド一覧]

ruby-changes:38874

From: nobu <ko1@a...>
Date: Thu, 18 Jun 2015 22:45:34 +0900 (JST)
Subject: [ruby-changes:38874] nobu:r50955 (trunk): un.rb: HTTP-alt by default

nobu	2015-06-18 22:45:26 +0900 (Thu, 18 Jun 2015)

  New Revision: 50955

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50955

  Log:
    un.rb: HTTP-alt by default
    
    * lib/un.rb (httpd): changed default port number to 8080 (HTTP
      Alternate), which does not need root privilege.

  Modified files:
    trunk/lib/un.rb
Index: lib/un.rb
===================================================================
--- lib/un.rb	(revision 50954)
+++ lib/un.rb	(revision 50955)
@@ -319,6 +319,7 @@ def httpd https://github.com/ruby/ruby/blob/trunk/lib/un.rb#L319
     [: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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]