Giter VIP home page Giter VIP logo

cloudflarewarpspeedtest's Introduction

Hi 👋 This is peanut996 🥜

Peanut996's github stats

Top Langs

cloudflarewarpspeedtest's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cloudflarewarpspeedtest's Issues

[Discussion] WARP can now connect to HKG data center, but experiencing packet loss

Hi, first of all, thank you for developing this project.
Based on my observations:
Although the latency has decreased quite a bit, there is a high rate of packet loss and very low bandwidth.
After testing my network environment, before the addition of the HKG Endpoint, the packet loss and latency for both IPv6 and IPv4 only increased by around 50% during certain time periods. This could possibly be due to intermittent blocking or frequent speed tests causing Cloudflare to temporarily block my IP.
Is this happening to only me, or is everyone experiencing this issue?
Are there any solutions to this problem?

直接闪退

经常出现
[Info] The total number of IP addresses in the complete speed test results is 0, so skipping the output.
available数量很多
是哪个参数出问题呢

添加自定义检测ip个数功能

如题,-quick参数的1000个有时一个也检测不出来,需要增多检测数量,但是-quick=false检测的数量太多。

建议将-quick参数改为-ips,默认1000

简陋的代码修改方案(可维护性不强,容易堆成屎山)

init.go:

func init() {
	// ...
	flag.BoolVar(&task.ScanAllPort, "full", false, "Scan all ports")
	// flag.BoolVar(&task.QuickMode, "q", true, "Quick mode, test results for randomly scanning 1000 IPs")
	flag.IntVar(&task.quickModeMaxIpNum, "ips", 1000, "...") // My English is poor, so I didn't full the description.
	flag.BoolVar(&task.IPv6Mode, "ipv6", false, "IPv6 support. Only effect when not provide extra ip cidr.")
	// ...
}

task/warping.go:

const (
	// ...
	wireguardHandshakeRespBytes	= 92
	// quickModeMaxIpNum		= 1000
	warpPublicKey			= "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo="
	QuickMode			= true // New
	// ...
)
var (
	// ...
	quickModeMaxIpNum = 1000 // New
	// QuickMode = false
	// ...
)
// ...

Regular cfst

Can you please fork and add the quick mode into regular cloudflare ST application? I am trying to build but I am unable to.

能对优选的节点测速吗

大佬这个可以对线路进行测速吗,感觉优选出来的ip有些速度很不理想,还有那个ip在哪里获得的

-p参数有问题

显示出来的结果是对的,但是写入csv的数目还是所有可用

it cannot be installed on Mac M1 Apple chip

i encounter an issue when i tried to install it on my device(Apple M1 Max / Mac os 13.5.1 ), thank you for your contribution, if you can fix it that would be better.
and below is error info

go install github.com/peanut996/CloudflareWarpSpeedTest@latest
go: downloading github.com/peanut996/CloudflareWarpSpeedTest v1.1.2
go: downloading golang.zx2c4.com/wireguard v0.0.0-20230704135630-469159ecf7d1
go: downloading github.com/cheggaaa/pb/v3 v3.1.4
go: downloading github.com/VividCortex/ewma v1.2.0
go: downloading github.com/fatih/color v1.15.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading golang.org/x/sys v0.6.0
go: downloading golang.org/x/net v0.7.0
go: downloading golang.org/x/crypto v0.6.0
go: downloading gvisor.dev/gvisor v0.0.0-20221203005347-703fd9b7fbc0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: downloading github.com/google/btree v1.0.1
package github.com/peanut996/CloudflareWarpSpeedTest
imports github.com/peanut996/CloudflareWarpSpeedTest/task
imports golang.zx2c4.com/wireguard/tun/netstack
imports gvisor.dev/gvisor/pkg/bufferv2
imports gvisor.dev/gvisor/pkg/atomicbitops
imports gvisor.dev/gvisor/pkg/cpuid
imports gvisor.dev/gvisor/pkg/state
imports gvisor.dev/gvisor/pkg/state/wire
imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /Users/paul/go/pkg/mod/gvisor.dev/[email protected]/pkg/gohacks`

无法生成excel文件

请问我在下载windows-amd64的release文件后,以管理员身份允行,跑完1000个IP后为什么无法生成相应Excel文件,请问该如何使用?

建议添加构建`arm64`版本

截止至Release v1.3.9,发布的二进制文件没有arm64结构的版本,只有amd64结构版本。我建议构建时添加arm64版本。

-f 参数没用

运行 CFWarpSpeedTest.exe -f asia.txt
报错如下:
flag provided but not defined: -f

asia.txt 内容如下:
103.22.200.0/24
103.22.201.0/24
103.22.202.0/24
.......................................

增加指定端口功能

当前程序会测试给定ip的所有端口,不是很有必要,一般来说同一ip的不同端口速度不会有太大区别,希望可以增加只测试特定端口的功能
例如:./CloudflareWarpSpeedTest -f ip.txt -pt port.txt或是./CloudflareWarpSpeedTest -ip 1.1.1.1 -port 2408这样


另外,-full功能可能有bug,当我使用.\CloudflareWarpSpeedTest.exe -p 0 -f ip.txt -tlr 0 -o ipv6.csv测试的时候会显示ip列表的所有ip测试结果,而当加上-full参数.\CloudflareWarpSpeedTest.exe -p 0 -f ip.txt -tlr 0 -o ipv6.csv -full时候,测试结果只会显示几条

不加-full image
-full image

maybe full static linking?

Linux OpenWrt 5.4.238 #0 SMP Mon Apr 17 13:15:36 2023 x86_64 GNU/Linux

	/lib64/ld-linux-x86-64.so.2 (0x7fa02dee9000)
Error loading shared library libresolv.so.2: No such file or directory (needed by CloudflareWarpSpeedTest)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fa02dee9000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fa02dee9000)

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.