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

Function checkIsStandard

agent/app/service/ssh.go:1527–1536  ·  view source on GitHub ↗
(item dto.SSHHistory)

Source from the content-addressed store, hash-verified

1525}
1526
1527func checkIsStandard(item dto.SSHHistory) bool {
1528 if len(item.Address) == 0 || net.ParseIP(item.Address) == nil {
1529 return false
1530 }
1531 if item.Port == "" {
1532 return true
1533 }
1534 portItem, _ := strconv.Atoi(item.Port)
1535 return portItem > 0 && portItem < 65536
1536}
1537
1538func handleGunzip(path string) error {
1539 cmdMgr := cmd.NewCommandMgr()

Callers 2

loadSSHDataFunction · 0.85
collectSSHLogItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected