Skip to content

Commit

Permalink
fix: don't pass -p when starting existing tunnel to avoid basis error
Browse files Browse the repository at this point in the history
Fixes #257
  • Loading branch information
connor4312 committed May 2, 2022
1 parent 807b262 commit a2ae54e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cli/src/basis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,20 +337,21 @@ impl Basis {
/// Hosts an existing tunnel, where the tunnel ID and host token are given.
pub async fn start_existing_tunnel(
&mut self,
port: u16,
_port: u16,
host_token: &str,
tunnel_id: &str,
) -> Result<BasisTunnel, AnyError> {
self.ensure_installed().await?; // no login needed here since host_token is given

let port_str = format!("{}", port);
// let port_str = format!("{}", port);
let command = [
"host",
tunnel_id,
"--access-token",
host_token,
"-p",
&port_str,
// todo@connor4312: we should eventually deal with ports, see #257
// "-p",
// &port_str,
"-c",
"TunnelRelay",
];
Expand Down

0 comments on commit a2ae54e

Please sign in to comment.