新增下载测速功能

This commit is contained in:
Spedoske
2020-07-09 10:52:26 +08:00
parent 839f48eb01
commit 5c67f34e71
6 changed files with 296 additions and 71 deletions

View File

@@ -21,7 +21,7 @@ func loadFirstIPOfRangeFromFile() []net.IPAddr {
if err != nil {
log.Fatal(err)
}
firstIP[15]=ipEndWith
firstIP[15] = ipEndWith
for IPRange.Contains(firstIP) {
firstIPCopy := make([]byte, len(firstIP))
copy(firstIPCopy, firstIP)