ssh: support BindAddress
This is already supported by libssh_rs.
This commit is contained in:
1 parent
a4b68247bb
commit
8560dbd2bb
2 files changed
+4
No files matched your search
@@ -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()?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user