1
0
Fork 0
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:
Evan Phoenix 2014-11-23 19:31:43 -08:00
parent 0b3d9d0d41
commit 751e6e5072

View file

@ -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