1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

feat: add IsPingConnected and IsTelnetConnected

This commit is contained in:
dudaodong
2023-04-19 11:14:10 +08:00
parent 9f68620b37
commit c137428b9e

View File

@@ -260,7 +260,6 @@ func IsPingConnected(host string) bool {
}
// IsTelnetConnected checks if can telnet specified host or not.
// only support two args: args[0] is port, args[1] is user
// Play: todo
func IsTelnetConnected(host string, port string) bool {
adder := host + ":" + port