-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #20
Open
jearol
wants to merge
73
commits into
badafans:master
Choose a base branch
from
jearol:dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #20
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
筛选IP过程视频
更新了适合Windows环境使用的版本
优化了合并icmp丢包率过程中大量的IF条件判断导致过程时间太长,整合sed命令后通过管道符传递优化,直接输出最优的50个IP
优化测速后的平均速度取值区间,更好的贴近物理宽带。更新测速服务器为cloudflare官方测速服务器
修复部分windows系统下,控制台某些输出出现乱码问题
修复时间统计当分与秒为个位的时候赋值变量报错问题
根据 https://anycast.freecdn.workers.dev/ 提供的可用ip段的数量动态计算ping的次数
定期维护更新 https://anycast.freecdn.workers.dev/ 可用的路由地址池
用PY3作为检测脚本,使用多线程进行PING测试
支持多个源地址,以半角空格分隔
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
介绍
用 Python3 重写了测试脚本;
使用多线程优化 Ping 测试,大大缩短测试时间;
不再设置测速阀值,而是择优选择数个 IP 进行速度测试;
新增通过 anycast IP 进行原始服务器测速,获取真实下载速度;
说明
继续使用 badafans/better-cloudflare-ip 项目中的 curl 和 fping 工具
需要安装 Python3 (Windows / Linux 通用)
通过 pip3 安装 requests
在原始服务器的网站根目录下生成测试文件
dd if=/dev/zero of=cf_speed_test bs=1M count=100
要能以 https://(cf中分配或者解析的域名)/cf_speed_test 访问并下载
测试下载速度时将进行 15 秒的下载操作
在脚本中配置 original_host 参数
运行脚本进行测速