mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
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.
This commit is contained in:
parent
03d8f10d11
commit
7afc9e4d56
@ -568,9 +568,9 @@ impl Reconnectable {
|
|||||||
let proxy_bin = Self::wezterm_bin_path(&ssh_dom.remote_wezterm_path);
|
let proxy_bin = Self::wezterm_bin_path(&ssh_dom.remote_wezterm_path);
|
||||||
|
|
||||||
let cmd = if initial {
|
let cmd = if initial {
|
||||||
format!("{} cli proxy", proxy_bin)
|
format!("{} cli --prefer-mux proxy", proxy_bin)
|
||||||
} else {
|
} 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));
|
ui.output_str(&format!("Running: {}\n", cmd));
|
||||||
log::error!("going to run {}", cmd);
|
log::error!("going to run {}", cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user