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

Function loadSSHPortValues

agent/app/service/ssh.go:1006–1012  ·  view source on GitHub ↗
(directives []sshDirective)

Source from the content-addressed store, hash-verified

1004}
1005
1006func loadSSHPortValues(directives []sshDirective) []string {
1007 values := loadSSHDirectiveValues(directives, "Port")
1008 if len(values) == 0 {
1009 return []string{defaultSSHPort}
1010 }
1011 return values
1012}
1013
1014func updateSSHDirectiveValue(key, value string, directives []sshDirective) error {
1015 if key == "Port" || key == "ListenAddress" {

Callers 2

UpdateMethod · 0.85
loadSSHConfigInfoFunction · 0.85

Calls 1

loadSSHDirectiveValuesFunction · 0.85

Tested by

no test coverage detected