From 124248028f0c99ede64f02fedaa23425989d0e75 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 20 Oct 2021 09:04:17 -0700 Subject: [PATCH] ssh: enable proxycommand overrides via command line for libssh backend --- wezterm-ssh/src/sessioninner.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wezterm-ssh/src/sessioninner.rs b/wezterm-ssh/src/sessioninner.rs index e825b0678..88aaa8885 100644 --- a/wezterm-ssh/src/sessioninner.rs +++ b/wezterm-ssh/src/sessioninner.rs @@ -119,6 +119,9 @@ impl SessionInner { break; } } + if let Some(cmd) = self.config.get("proxycommand") { + sess.set_option(libssh::SshOption::ProxyCommand(Some(cmd.to_string())))?; + } sess.options_parse_config(None)?; // FIXME: overridden config path? sess.connect()?;