fix(ssh_config): Fix formatting for unknown options

This commit is contained in:
Myzel394 2024-10-02 15:39:34 +02:00
parent 60ac7cf961
commit 90b62cf01f
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -109,7 +109,11 @@ func formatSSHOption(
var key string var key string
if option.Key != nil { if option.Key != nil {
key = fields.FieldsNameFormattedMap[option.Key.Key] if optionName, found := fields.FieldsNameFormattedMap[option.Key.Key]; found {
key = optionName
} else {
key = option.Key.Value.Raw
}
} else { } else {
key = "" key = ""
} }