Skip to content

Commit 5b0c484

Browse files
authored
Fix support for multiple ephemeral ports (#1399)
1 parent 81aa82b commit 5b0c484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxy/core/listener/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def setup(self) -> None:
3939
if self.flags.unix_socket_path:
4040
self.add(UnixSocketListener)
4141
hostnames = {self.flags.hostname, *self.flags.hostnames}
42-
ports = set(self.flags.ports)
42+
ports = list(self.flags.ports)
4343
if not self.flags.unix_socket_path:
44-
ports.add(self.flags.port)
44+
ports.append(self.flags.port)
4545
for hostname, port in itertools.product(hostnames, ports):
4646
self.add(TcpSocketListener, hostname=hostname, port=port)
4747

0 commit comments

Comments
 (0)