mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-23 13:52:26 +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.
|
// IsTelnetConnected checks if can telnet specified host or not.
|
||||||
// only support two args: args[0] is port, args[1] is user
|
|
||||||
// Play: todo
|
// Play: todo
|
||||||
func IsTelnetConnected(host string, port string) bool {
|
func IsTelnetConnected(host string, port string) bool {
|
||||||
adder := host + ":" + port
|
adder := host + ":" + port
|
||||||
|
|||||||
Reference in New Issue
Block a user