From c137428b9e35c9784cd0dc8429160f26a8bb928a Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 19 Apr 2023 11:14:10 +0800 Subject: [PATCH] feat: add IsPingConnected and IsTelnetConnected --- netutil/net.go | 1 - 1 file changed, 1 deletion(-) diff --git a/netutil/net.go b/netutil/net.go index dc52fe2..53d69bb 100644 --- a/netutil/net.go +++ b/netutil/net.go @@ -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