From 5b0c484e6ad502c47648d0b8f763f612799eb929 Mon Sep 17 00:00:00 2001 From: Abhinav Singh <126065+abhinavsingh@users.noreply.github.com> Date: Thu, 25 Apr 2024 09:51:52 +0530 Subject: [PATCH] Fix support for multiple ephemeral ports (#1399) --- 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 f9befa9c..b0945bfd 100644 --- a/proxy/core/listener/pool.py +++ b/proxy/core/listener/pool.py @@ -39,9 +39,9 @@ class ListenerPool: 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)