mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Be sure to only listen on host:port combos once. Fixes #1022
This commit is contained in:
parent
7cdb33ff6f
commit
84fdc1bb14
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ module Puma
|
|||
|
||||
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+.
|
||||
|
|
Loading…
Reference in a new issue