chore: Adjust the tcp-concurrent and sniffer log

This commit is contained in:
Meta
2022-04-27 15:22:42 +08:00
parent 2e08a4b4e1
commit 183973e823
5 changed files with 21 additions and 22 deletions

View File

@ -238,8 +238,7 @@ func concurrentDialContext(ctx context.Context, network, address string, opt *op
if ip.Is6() {
v = "6"
}
log.Debugln("[%s] try use [%s] connected", host, ip.String())
//log.Debugln("[%s] try use [%s] connected", host, ip.String())
result.Conn, result.error = dialContext(ctx, network+v, ip, port, opt)
}
@ -255,12 +254,11 @@ func concurrentDialContext(ctx context.Context, network, address string, opt *op
return res.Conn, nil
}
log.Errorln("connect error:%v", res.error)
//log.Errorln("connect error:%v", res.error)
if connCount == 0 {
log.Errorln("connect [%s] all ip failed", host)
//log.Errorln("connect [%s] all ip failed", host)
break
}
}
return nil, errors.New("all ip tcp shakeHands failed")
}