mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
feat: allow unknown fields in ssh2 configuration file (#181)
This commit is contained in:
committed by
GitHub
parent
5a67fc7b0e
commit
b4fa50a666
@@ -7,7 +7,7 @@ use std::path::PathBuf;
|
||||
use remotefs::RemoteFs;
|
||||
use remotefs_aws_s3::AwsS3Fs;
|
||||
use remotefs_ftp::FtpFs;
|
||||
use remotefs_ssh::{ScpFs, SftpFs, SshOpts};
|
||||
use remotefs_ssh::{ScpFs, SftpFs, SshConfigParseRule, SshOpts};
|
||||
|
||||
use super::params::{AwsS3Params, GenericProtocolParams};
|
||||
use super::{FileTransferProtocol, ProtocolParams};
|
||||
@@ -110,7 +110,10 @@ impl Builder {
|
||||
opts = opts.password(password);
|
||||
}
|
||||
if let Some(config_path) = config_client.get_ssh_config() {
|
||||
opts = opts.config_file(PathBuf::from(config_path));
|
||||
opts = opts.config_file(
|
||||
PathBuf::from(config_path),
|
||||
SshConfigParseRule::ALLOW_UNKNOWN_FIELDS,
|
||||
);
|
||||
}
|
||||
opts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user