ssh: support BindAddress

This is already supported by libssh_rs.
This commit is contained in:
Gregory Anders authored and Wez Furlong committed 2022-04-15 20:53:07 -07:00
1 parent a4b68247bb
commit 8560dbd2bb
2 files changed
+4

No files matched your search

+1
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.
+3
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()?;