修复上一个commit的错误

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent 93dee66a77
commit a3e4258dfc

View File

@@ -112,7 +112,7 @@ func RandPort(mustValid, isudp bool, depth int) (p int) {
}
if depth < 20 {
return RandPort(mustValid, false, depth)
return RandPort(mustValid, false, depth+1)
} else {
if ce := utils.CanLogDebug("Get RandPort udp but got err, and depth reach limit, return directly"); ce != nil {