(item dto.SSHHistory)
| 1525 | } |
| 1526 | |
| 1527 | func 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 | |
| 1538 | func handleGunzip(path string) error { |
| 1539 | cmdMgr := cmd.NewCommandMgr() |
no outgoing calls
no test coverage detected