Coder Social home page Coder Social logo

ilioner / cloudflare-ip-speedtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from badafans/cloudflare-ip-speedtest

0.0 0.0 0.0 18 KB

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

License: MIT License

Go 100.00%

cloudflare-ip-speedtest's Introduction

简介

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

安装

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

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

这将编译可执行文件 ipspeedtest。

参数说明

ipspeedtest 可以接受以下参数:

  • file: IP地址文件名称 (default "ip.txt")
  • max: 并发请求最大协程数 (default 100)
  • outfile: 输出文件名称 (default "ip.csv")
  • port: 端口 (default 443)
  • speedtest: 下载测速协程数量,设为0禁用测速 (default 5)
  • tls: 是否启用TLS (default true)
  • url: 测速文件地址 (default "speed.cloudflare.com/__down?bytes=500000000")

运行

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

./ipspeedtest -file=ip.txt -outfile=ip.csv -port=443 -max=100 -speedtest=1 -tls=true -url=speed.cloudflare.com/__down?bytes=500000000

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

输出说明

程序将输出每个成功测试的 IP 地址的信息,包括 IP 地址、端口、数据中心、地区、城市、网络延迟和下载速度(如果选择测速)。

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

许可证

The MIT License (MIT)

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

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

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

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

cloudflare-ip-speedtest's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.