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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user