MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / updateSSHDirectiveValue

Function updateSSHDirectiveValue

agent/app/service/ssh.go:1014–1019  ·  view source on GitHub ↗
(key, value string, directives []sshDirective)

Source from the content-addressed store, hash-verified

1012}
1013
1014func 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
1021func updateSSHSingleDirectiveValue(key, value string, directives []sshDirective) error {
1022 block, err := loadSSHManagedBlockFromFile(sshPath)

Callers 1

UpdateMethod · 0.85

Calls 2

Tested by

no test coverage detected