From 1641db1dbff12db3e5364368626e1bc44d17f5c4 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Thu, 25 Apr 2024 09:46:50 +0530 Subject: [PATCH] Fix support for multiple ephemeral ports --- proxy/core/listener/pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/core/listener/pool.py b/proxy/core/listener/pool.py index f9befa9c17..b0945bfd10 100644 --- a/proxy/core/listener/pool.py +++ b/proxy/core/listener/pool.py @@ -39,9 +39,9 @@ def setup(self) -> None: if self.flags.unix_socket_path: self.add(UnixSocketListener) hostnames = {self.flags.hostname, *self.flags.hostnames} - ports = set(self.flags.ports) + ports = list(self.flags.ports) if not self.flags.unix_socket_path: - ports.add(self.flags.port) + ports.append(self.flags.port) for hostname, port in itertools.product(hostnames, ports): self.add(TcpSocketListener, hostname=hostname, port=port)