@@ -31,7 +31,8 @@ use crate::{
3131 async_pipe:: { get_socket_name, listen_socket_rw_stream, AsyncRWAccepter } ,
3232 auth:: Auth ,
3333 constants:: {
34- APPLICATION_NAME , CONTROL_PORT , IS_A_TTY , TUNNEL_CLI_LOCK_NAME , TUNNEL_SERVICE_LOCK_NAME ,
34+ AGENT_HOST_PORT , APPLICATION_NAME , CONTROL_PORT , IS_A_TTY , TUNNEL_CLI_LOCK_NAME ,
35+ TUNNEL_SERVICE_LOCK_NAME ,
3536 } ,
3637 log,
3738 state:: LauncherPaths ,
@@ -330,7 +331,8 @@ pub async fn user(ctx: CommandContext, user_args: TunnelUserSubCommands) -> Resu
330331 }
331332 TunnelUserSubCommands :: Show => {
332333 if let Ok ( Some ( sc) ) = auth. get_current_credential ( ) {
333- ctx. log . result ( format ! ( "logged in with provider {}" , sc. provider) ) ;
334+ ctx. log
335+ . result ( format ! ( "logged in with provider {}" , sc. provider) ) ;
334336 } else {
335337 ctx. log . result ( "not logged in" ) ;
336338 return Ok ( 1 ) ;
@@ -649,7 +651,7 @@ async fn serve_with_csa(
649651 dt. start_existing_tunnel ( t) . await
650652 } else {
651653 tokio:: select! {
652- t = dt. start_new_launcher_tunnel( gateway_args. name. as_deref( ) , gateway_args. random_name, & [ CONTROL_PORT ] ) => t,
654+ t = dt. start_new_launcher_tunnel( gateway_args. name. as_deref( ) , gateway_args. random_name, & [ CONTROL_PORT , AGENT_HOST_PORT ] ) => t,
653655 _ = shutdown. wait( ) => return Ok ( 1 ) ,
654656 }
655657 } ?;
0 commit comments