1
0
Fork 0
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:
Evan Phoenix 2016-07-20 10:51:49 -07:00
parent 7cdb33ff6f
commit 84fdc1bb14

View file

@ -246,7 +246,7 @@ module Puma
def localhost_addresses def localhost_addresses
addrs = TCPSocket.gethostbyname "localhost" addrs = TCPSocket.gethostbyname "localhost"
addrs[3..-1] addrs[3..-1].uniq
end end
# Tell the server to listen on host +host+, port +port+. # Tell the server to listen on host +host+, port +port+.