XIU2 / CloudflareSpeedTest

🌩「自选优选 IP」测试 Cloudflare CDN 延迟和速度,获取最快 IP !当然也支持其他 CDN / 网站 IP ~
GNU General Public License v3.0
18.24k stars 3.51k forks source link

ParseCIDR err invalid CIDR address: /128 #300

Closed hamidtb closed 1 year ago

hamidtb commented 1 year ago

hi i have a list of IP like this:

23.227.38.53 23.227.39.11 104.16.97.148 66.235.200.241 23.227.39.54

and this IP's stored in ip.txt

but every time i run program in linux, it give the flowing error: ParseCIDR err invalid CIDR address: /128

charSLee013 commented 1 year ago

Hi there, I tried running the program on my Linux machine and it worked without any errors. Here's the output I got:

user@Ubuntu:/tmp/CloudflareSpeedTest$ go run .
# XIU2/CloudflareSpeedTest

开始延迟测速(模式:TCP,端口:443,平均延迟上限:9999 ms,平均延迟下限:0 ms)
5 / 5 [----------------------------------------------------------------------------------------------------] 可用: 5
开始下载测速(下载速度下限:0.00 MB/s,下载测速数量:5,下载测速队列:5):
5 / 5 [----------------------------------------------------------------------------------------------------]
IP 地址           已发送  已接收  丢包率  平均延迟  下载速度 (MB/s)
66.235.200.241    4       4       0.00    1.58      0.00
23.227.38.53      4       4       0.00    1.61      0.00
104.16.97.148     4       4       0.00    1.78      0.00
23.227.39.54      4       4       0.00    1.79      0.00
23.227.39.11      4       4       0.00    1.81      0.00

完整测速结果已写入 result.csv 文件,可使用记事本/表格软件查看。
user@Ubuntu:/tmp/CloudflareSpeedTest$ cat ip.txt
23.227.38.53
23.227.39.11
104.16.97.148
66.235.200.241
23.227.39.54

Please try updating to the latest version of the program or provide more information, such as the output log, for further debugging.

XIU2 commented 1 year ago

我记得之前看到过类似的反馈,后来发现是因为文件中包含了不可见的字符,所以请检查您的 ip.txt 文件。

您可以删除并再次创建一个新的 ip.txt 文件,复制这些 IP 粘贴进文件并保存,然后重试。


I remember seeing similar feedback before. After troubleshooting, it was found that the file contained invisible characters, so please check your ip.txt file.

You can delete the file, create a new ip.txt file again, copy the IP paste and save it and try again.

Atticus6 commented 1 year ago

ip.txt后面不能有空格键