(key, value string, directives []sshDirective)
| 1012 | } |
| 1013 | |
| 1014 | func updateSSHDirectiveValue(key, value string, directives []sshDirective) error { |
| 1015 | if key == "Port" || key == "ListenAddress" { |
| 1016 | return rewriteSSHMultiValueDirective(key, value, directives) |
| 1017 | } |
| 1018 | return updateSSHSingleDirectiveValue(key, value, directives) |
| 1019 | } |
| 1020 | |
| 1021 | func updateSSHSingleDirectiveValue(key, value string, directives []sshDirective) error { |
| 1022 | block, err := loadSSHManagedBlockFromFile(sshPath) |
no test coverage detected