Skip to content

Commit

Permalink
Fix support for multiple ephemeral ports
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh committed Apr 25, 2024
1 parent 81aa82b commit 1641db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/core/listener/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1641db1

Please sign in to comment.