Browse Source

fix allip deadloop bug

mz 3 years ago
parent
commit
ed0a8bbfea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      task/ip.go

+ 1 - 1
task/ip.go

@@ -95,7 +95,7 @@ func (r *IPRanges) chooseIPv4() {
 	minIP, hosts := r.getIPRange()
 	for r.ipNet.Contains(r.firstIP) {
 		if TestAll { // 如果是测速全部 IP
-			for i := byte(0); i <= hosts; i++ { // 遍历 IP 最后一段最小值到最大值
+			for i := byte(0); i < hosts; i++ { // 遍历 IP 最后一段最小值到最大值
 				r.appendIPv4(i + minIP)
 			}
 		} else { // 随机 IP 的最后一段 0.0.0.X