1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

ssh: support BindAddress

This is already supported by libssh_rs.
This commit is contained in:
Gregory Anders 2022-04-14 14:55:18 -06:00 committed by Wez Furlong
parent a4b68247bb
commit 8560dbd2bb
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ and respects the following options:
* `Host` (including wildcard matching)
* `UserKnownHostsFile`
* `IdentitiesOnly`
* `BindAddress`
All other options are parsed but have no effect. Notably, neither `Match` or
`Include` will do anything.

View File

@ -196,6 +196,9 @@ impl SessionInner {
types.to_string(),
))?;
}
if let Some(bind_addr) = self.config.get("bindaddress") {
sess.set_option(libssh_rs::SshOption::BindAddress(bind_addr.to_string()))?;
}
sess.connect()?;