Cloudflare-IP-SpeedTest

command module
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

简介

Go Version Release Version GitHub repo size GitHub last commit

Cloudflare IP 测速器是一个使用 Golang 编写的小工具,用于测试一些 Cloudflare 的 IP 地址的延迟和下载速度,并将结果输出到 CSV 文件中。

安装

首先安装 Golang 和 Git,然后在终端中运行以下命令:

git clone https://github.com/sinspired/Cloudflare-IP-SpeedTest.git
cd Cloudflare-IP-SpeedTest
go build -o ipspeedtest main.go

这将编译可执行文件 ipspeedtest。

参数说明

ipspeedtest 可以接受以下参数:

  • -file: IP地址文件名称(.txt或.zip) (default "ip.txt")
  • -max: 并发请求最大协程数 (default 100)
  • -mulnum: 多协程测速造成测速不准,可进行倍数补偿 (default 1)
  • -outfile: 输出文件名称(自动设置) (default "result.csv")
  • -port: 端口 (default 443)
  • -speedlimit: 最低下载速度(MB/s) (default 2)
  • -speedtest: 下载测速协程数量,设为0禁用测速 (default 5)
  • -tcplimit: TCP最大延迟(ms) (default 1000)
  • -tls: 是否启用TLS (default true)
  • -url: 测速文件地址 (default "speed.cloudflare.com/__down?bytes=500000000")

命令行键入 -h help 获取帮助 ./ipSpeedTest.exe -h

运行

在终端中运行以下命令来启动程序:

./ipspeedtest -port=443 -tls=true -speedtest=1 -speedlimit=5 -mulnum=1 -url="speed.cloudflare.com/__down?bytes=500000000" -max=100 -tcplimit=1000 -file="ip.txt" -outfile="result.csv"

请替换参数值以符合您的实际需求。

输出说明

程序将输出每个成功测试的 IP 地址的信息,包括 IP 地址、端口、数据中心、地区、域名后缀、城市、网络延迟(ms)和下载速度(MB/s)(如果选择测速)。 网址、文件路径参数如包含空格需要加""。

程序还会将所有结果写入一个 CSV 文件中。

最新发行版下载

Release Detail

许可证

The MIT License (MIT)

此处,"软件" 指 Cloudflare IP 测速器。

特此授予非限制性许可证,允许任何人获得本软件副本并自由使用、复制、修改、合并、出版发行、散布、再许可和/或销售本软件的副本,以及将本软件与其它软件捆绑在一起使用。

上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。

本软件按 "原样" 提供,没有任何形式的明示或暗示保证,包括但不限于适销性保证、特定用途适用性保证和非侵权保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论是在合同、侵权或其他方面,由于或与软件或使用或其他交易中的软件产生或与之相关的操作。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
从ZIP文件中提取所有TXT文件并合并到一个新文件中
从ZIP文件中提取所有TXT文件并合并到一个新文件中

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址