cli: warn when cli options are not applied (#211492)

Fixes #211378
This commit is contained in:
Connor Peet
2024-04-26 15:23:02 -07:00
committed by GitHub
parent bf661a50b0
commit 233775583c
+10
View File
@@ -556,6 +556,16 @@ async fn serve_with_csa(
match acquire_singleton(&paths.tunnel_lockfile()).await { match acquire_singleton(&paths.tunnel_lockfile()).await {
Ok(SingletonConnection::Client(stream)) => { Ok(SingletonConnection::Client(stream)) => {
debug!(log, "starting as client to singleton"); debug!(log, "starting as client to singleton");
if gateway_args.name.is_none()
|| !gateway_args.install_extension.is_empty()
|| gateway_args.tunnel.tunnel_id.is_some()
{
warning!(
log,
"Command-line options will not be applied until the existing tunnel exits."
);
}
let should_exit = start_singleton_client(SingletonClientArgs { let should_exit = start_singleton_client(SingletonClientArgs {
log: log.clone(), log: log.clone(),
shutdown: shutdown.clone(), shutdown: shutdown.clone(),