mirror of
https://github.com/XIU2/CloudflareSpeedTest.git
synced 2026-03-23 08:01:01 +08:00
fix allip deadloop bug
This commit is contained in:
@@ -95,7 +95,7 @@ func (r *IPRanges) chooseIPv4() {
|
|||||||
minIP, hosts := r.getIPRange()
|
minIP, hosts := r.getIPRange()
|
||||||
for r.ipNet.Contains(r.firstIP) {
|
for r.ipNet.Contains(r.firstIP) {
|
||||||
if TestAll { // 如果是测速全部 IP
|
if TestAll { // 如果是测速全部 IP
|
||||||
for i := byte(0); i <= hosts; i++ { // 遍历 IP 最后一段最小值到最大值
|
for i := byte(0); i < hosts; i++ { // 遍历 IP 最后一段最小值到最大值
|
||||||
r.appendIPv4(i + minIP)
|
r.appendIPv4(i + minIP)
|
||||||
}
|
}
|
||||||
} else { // 随机 IP 的最后一段 0.0.0.X
|
} else { // 随机 IP 的最后一段 0.0.0.X
|
||||||
|
|||||||
Reference in New Issue
Block a user