From 4c0cb7d7518aed2217c7b0a1f0bcb4236ec51d66 Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Thu, 18 Aug 2022 10:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goping/goping.go | 1 - pong.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/goping/goping.go b/goping/goping.go index 38990af..c26bd46 100644 --- a/goping/goping.go +++ b/goping/goping.go @@ -139,7 +139,6 @@ func Ping(domain string, PS int) { len, err := conn.Read(recv) //strings.Contains(err.Error(), "timeout") //超时状态 len=0 error包含 read ip4 10.0.20.12->103.97.129.254: i/o timeout - fmt.Println(len, err) //if len == 0 && err != nil { // fmt.Printf("%s\n", red("timeout")) // dropPack++ diff --git a/pong.go b/pong.go index 3395354..3143628 100644 --- a/pong.go +++ b/pong.go @@ -27,8 +27,8 @@ func main() { timeout := flag.Int("t", 1, "timeout") flag.Parse() - fmt.Println("port:", *port) - fmt.Println("protocol:", *protocol) + //fmt.Println("port:", *port) + //fmt.Println("protocol:", *protocol) switch flag.NArg() { //函数返回没有被解析的命令行参数的个数 // flag.Args() 函数返回没有被解析的命令行参数