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

Function hasEnabledSSHSocket

agent/app/service/ssh.go:260–268  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

258}
259
260func hasEnabledSSHSocket(serviceName string) bool {
261 for _, socketName := range loadSSHSocketNames(serviceName) {
262 enable, _ := controller.CheckEnable(socketName)
263 if enable {
264 return true
265 }
266 }
267 return false
268}
269
270func loadSSHConfigInfo(data *dto.SSHInfo) {
271 directives, _, err := parseSSHConfigTree(sshPath)

Callers 1

loadSSHServiceStatusFunction · 0.85

Calls 1

loadSSHSocketNamesFunction · 0.85

Tested by

no test coverage detected