mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/utils.rb: removed unused argument variable.
[fix GH-356] Patch by @vipulnsward * lib/webrick/server.rb: ditto. * lib/webrick/ssl.rb: ditto. * test/webrick/test_utils.rb: added test for WEBrick::Utils#create_listeners. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
045de8a9c5
commit
73fc0cc572
5 changed files with 18 additions and 6 deletions
|
@ -63,7 +63,7 @@ module WEBrick
|
|||
# Creates TCP server sockets bound to +address+:+port+ and returns them.
|
||||
#
|
||||
# It will create IPV4 and IPV6 sockets on all interfaces.
|
||||
def create_listeners(address, port, logger=nil)
|
||||
def create_listeners(address, port)
|
||||
unless port
|
||||
raise ArgumentError, "must specify port"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue