From 7afc9e4d56f13ed71c68148a6e9cd1a0dd05105f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 17 Apr 2022 18:15:17 -0700 Subject: [PATCH] mux: use --prefer-mux when spawning cli proxy for domain attach It doesn't make sense to try to connect to a possibly stale gui instance that might have been running on the same host. --- wezterm-client/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wezterm-client/src/client.rs b/wezterm-client/src/client.rs index 38560c70b..bc318b4fe 100644 --- a/wezterm-client/src/client.rs +++ b/wezterm-client/src/client.rs @@ -568,9 +568,9 @@ impl Reconnectable { let proxy_bin = Self::wezterm_bin_path(&ssh_dom.remote_wezterm_path); let cmd = if initial { - format!("{} cli proxy", proxy_bin) + format!("{} cli --prefer-mux proxy", proxy_bin) } else { - format!("{} cli --no-auto-start proxy", proxy_bin) + format!("{} cli --prefer-mux --no-auto-start proxy", proxy_bin) }; ui.output_str(&format!("Running: {}\n", cmd)); log::error!("going to run {}", cmd);