peanut996 / cloudflarewarpspeedtest Goto Github PK
View Code? Open in Web Editor NEW⭐WARP IP 优选工具
License: GNU General Public License v3.0
⭐WARP IP 优选工具
License: GNU General Public License v3.0
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数量很多
是哪个参数出问题呢
-sl
这个参数是否其实没有?
如题,-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
// ...
)
// ...
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在哪里获得的
显示出来的结果是对的,但是写入csv的数目还是所有可用
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`
谢谢,如:
"103.22.202.0/24",
"103.31.4.0/23",
CloudflareWarpSpeedTest/main.go
Line 77 in f75f50a
这个地方是不是应该改成 task.PublicKey
请问我在下载windows-amd64的release文件后,以管理员身份允行,跑完1000个IP后为什么无法生成相应Excel文件,请问该如何使用?
CloudflareWarpSpeedTest/README_EN.md
Line 47 in 6f4ec20
$ CloudflareWarpSpeedTest -n 200 -t 10 -tl 300 -q -tll 0 -tlr 0.2 -sl 5 -p 10 -f ip.txt -ip 1.1.1.1 -o result.csv -full
flag provided but not defined: -sl
CloudflareWarpSpeedTest v1.3.9
截止至Release v1.3.9
,发布的二进制文件没有arm64
结构的版本,只有amd64
结构版本。我建议构建时添加arm64
版本。
运行 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 |
![]() |
---|---|
加-full |
![]() |
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.