From 84fdc1bb14b72856a3dac40db1a43a560435706b Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Wed, 20 Jul 2016 10:51:49 -0700 Subject: [PATCH] Be sure to only listen on host:port combos once. Fixes #1022 --- lib/puma/binder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/binder.rb b/lib/puma/binder.rb index be1f6150..2892237f 100644 --- a/lib/puma/binder.rb +++ b/lib/puma/binder.rb @@ -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+.