(directives []sshDirective, key string)
| 993 | } |
| 994 | |
| 995 | func loadSSHDirectiveValues(directives []sshDirective, key string) []string { |
| 996 | var values []string |
| 997 | for _, item := range directives { |
| 998 | if item.InMatch || !strings.EqualFold(item.Key, key) { |
| 999 | continue |
| 1000 | } |
| 1001 | values = append(values, item.Value) |
| 1002 | } |
| 1003 | return values |
| 1004 | } |
| 1005 | |
| 1006 | func loadSSHPortValues(directives []sshDirective) []string { |
| 1007 | values := loadSSHDirectiveValues(directives, "Port") |
no outgoing calls
no test coverage detected