Skip to content

Commit

Permalink
fix(device): disable yamux switch for tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitrgadiya committed Mar 15, 2022
1 parent c9d8305 commit 2c97119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riocli/device/tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
def run_tunnel_on_device(device_guid: str, remote_port: int, path: str) -> None:
config = Configuration()
run_on_device(device_guid=device_guid,
command=['piping-tunnel', 'server', '--server', config.piping_server, '--yamux', '--port',
command=['piping-tunnel', 'server', '--server', config.piping_server, '--port',
str(remote_port), path],
background=True)


def run_tunnel_on_local(local_port: int, path: str, background: bool = False) -> None:
config = Configuration()
tunnel = os.path.join(os.path.dirname(config.filepath), 'tools', 'piping-tunnel')
command = '{} client --server {} --yamux --port {} {}'.format(tunnel, config.piping_server, local_port, path)
command = '{} client --server {} --port {} {}'.format(tunnel, config.piping_server, local_port, path)
if background:
command = '{} --progress=false'.format(command)
click.secho(command)
Expand Down

0 comments on commit 2c97119

Please sign in to comment.