Skip to content

Commit

Permalink
Be sure to only listen on host:port combos once. Fixes #1022
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Jul 20, 2016
1 parent 7cdb33f commit 84fdc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/binder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def parse(binds, logger)

def localhost_addresses
addrs = TCPSocket.gethostbyname "localhost"
addrs[3..-1]
addrs[3..-1].uniq
end

# Tell the server to listen on host +host+, port +port+.
Expand Down

0 comments on commit 84fdc1b

Please sign in to comment.