去掉显示

master
dustoair 3 years ago
parent eada32826b
commit 4c0cb7d751

@ -139,7 +139,6 @@ func Ping(domain string, PS int) {
len, err := conn.Read(recv) len, err := conn.Read(recv)
//strings.Contains(err.Error(), "timeout") //strings.Contains(err.Error(), "timeout")
//超时状态 len=0 error包含 read ip4 10.0.20.12->103.97.129.254: i/o 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 { //if len == 0 && err != nil {
// fmt.Printf("%s\n", red("timeout")) // fmt.Printf("%s\n", red("timeout"))
// dropPack++ // dropPack++

@ -27,8 +27,8 @@ func main() {
timeout := flag.Int("t", 1, "timeout") timeout := flag.Int("t", 1, "timeout")
flag.Parse() flag.Parse()
fmt.Println("port:", *port) //fmt.Println("port:", *port)
fmt.Println("protocol:", *protocol) //fmt.Println("protocol:", *protocol)
switch flag.NArg() { //函数返回没有被解析的命令行参数的个数 switch flag.NArg() { //函数返回没有被解析的命令行参数的个数
// flag.Args() 函数返回没有被解析的命令行参数 // flag.Args() 函数返回没有被解析的命令行参数

Loading…
Cancel
Save