mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
ssh: support BindAddress
This is already supported by libssh_rs.
This commit is contained in:
parent
a4b68247bb
commit
8560dbd2bb
@ -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.
|
||||
|
@ -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()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user