mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Only use config.ru binds if specified. Fixes #606
This commit is contained in:
parent
0b3d9d0d41
commit
751e6e5072
1 changed files with 5 additions and 1 deletions
|
@ -96,11 +96,15 @@ module Puma
|
|||
app, options = Rack::Builder.parse_file rackup
|
||||
@options.merge! options
|
||||
|
||||
config_ru_binds = []
|
||||
|
||||
options.each do |key,val|
|
||||
if key.to_s[0,4] == "bind"
|
||||
@options[:binds] << val
|
||||
config_ru_binds << val
|
||||
end
|
||||
end
|
||||
|
||||
@options[:binds] = config_ru_binds unless config_ru_binds.empty?
|
||||
end
|
||||
|
||||
if @options[:mode] == :tcp
|
||||
|
|
Loading…
Add table
Reference in a new issue