Skip to content

Commit

Permalink
Force 127.0.0.1 not just "localhost", to avoid wireproxy trying to co…
Browse files Browse the repository at this point in the history
…nnect to IPv6
  • Loading branch information
hafriedlander committed Jul 16, 2023
1 parent 96bd1ea commit 55ee853
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gyre/wireproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
PORT_TEMPLATE = """
[TCPServerTunnel]
ListenPort = {external_port}
Target = localhost:{internal_port}
Target = 127.0.0.1:{internal_port}
"""


Expand Down Expand Up @@ -112,7 +112,6 @@ def start(self):
)

cfgpath = self._write_cfg()
print(cfgpath)

self.proc = reactor.spawnProcess(
Wireproxy.Protocol(cfgpath),
Expand Down

0 comments on commit 55ee853

Please sign in to comment.