diff options
Diffstat (limited to 'lib/webrick/server.rb')
-rw-r--r-- | lib/webrick/server.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index c71b118642..77519bf8e5 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -56,11 +56,11 @@ module WEBrick @logger.info("ruby #{rubyv}") @listeners = [] - unless @config[:DoNotListen] + unless @config[:DoNotListen] + if @config[:Listen] + warn(":Listen option is deprecated; use GenericServer#listen") + end listen(@config[:BindAddress], @config[:Port]) - @config[:Listen].each{|addr, port| - listen(addr, port).each{|sock| @listeners << sock } - } end end |