Skip to content

Commit

Permalink
binder.rb - allow both unix & txp listeners
Browse files Browse the repository at this point in the history
If unix listeners were defined before any tcp listeners, code would error.
  • Loading branch information
MSP-Greg committed Sep 24, 2019
1 parent 120f247 commit d50a971
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puma/binder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def parse(binds, logger)
io = add_tcp_listener uri.host, uri.port, opt, bak

@ios.each do |i|
next unless TCPServer === i
addr = if i.local_address.ipv6?
"[#{i.local_address.ip_unpack[0]}]:#{i.local_address.ip_unpack[1]}"
else
Expand Down

0 comments on commit d50a971

Please sign in to comment.