Skip to content

Commit

Permalink
Agent: Serve Forwarded Ports on IPv4 and IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
holesch committed Aug 16, 2024
1 parent e3335af commit 23b85e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions not_my_board/_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ async def usbip_detach(vhci_port):
await asyncio.sleep(2)

async def port_forward(self, ready_event, proxy, target, local_port):
localhost = "127.0.0.1"
connection_handler = functools.partial(
self._handle_port_forward_client, proxy, target
)
async with util.Server(connection_handler, localhost, local_port) as server:
async with util.Server(connection_handler, "localhost", local_port) as server:
ready_event.set()
await server.serve_forever()

Expand Down

0 comments on commit 23b85e5

Please sign in to comment.