mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -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::collections::HashMap;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
// Ext
|
||||
use remotefs_ssh::SshKeyStorage as SshKeyStorageTrait;
|
||||
use remotefs_ssh::{SshConfigParseRule, SshKeyStorage as SshKeyStorageTrait};
|
||||
use ssh2_config::SshConfig;
|
||||
|
||||
use super::config_client::ConfigClient;
|
||||
@@ -43,7 +43,7 @@ impl SshKeyStorage {
|
||||
.map_err(|e| format!("failed to open {path}: {e}"))
|
||||
.map(BufReader::new)?;
|
||||
SshConfig::default()
|
||||
.parse(&mut reader)
|
||||
.parse(&mut reader, SshConfigParseRule::ALLOW_UNKNOWN_FIELDS)
|
||||
.map_err(|e| format!("Failed to parse ssh2 config: {e}"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user