增加必要的数据记录

This commit is contained in:
xiuting.xu
2026-06-16 14:05:26 +08:00
parent fa19fc8722
commit b70bad4721
24 changed files with 1784 additions and 504 deletions

View File

@@ -69,7 +69,10 @@ pub fn load_rtr_ssh_runtime_config(
};
let password = password.map(str::trim).filter(|value| !value.is_empty());
if matches!(auth_mode, SshAuthMode::Password | SshAuthMode::Both) && password.is_none() {
bail!("SSH auth mode '{}' requires non-empty password", auth_mode.as_str());
bail!(
"SSH auth mode '{}' requires non-empty password",
auth_mode.as_str()
);
}
let mut methods = MethodSet::empty();