Skip to content

Commit

Permalink
fix url test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Qetesh committed Jul 7, 2024
1 parent ae2d83b commit 14dfc2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ CDN_bestIP 是一个使用 Python 编写的项目,自动获取 CDN 平台最
- **可使用自建服务器,指定测速链接,`stURL` 变量设置自定义 url 测速**
设置系统环境变量

> stUrl(可选,可通过`dd if=/dev/zero of=100MB.test bs=1M count=100`在网站根目录生成测试文件)
> stUrl(可选,可通过`dd if=/dev/zero of=output.zip bs=1M count=210`在网站根目录生成测试文件)
>
> 测试Url连接为:`https://xx.xx.net/100MB.test`
> 测试Url连接为:`https://xx.xx.net/output.zip`
>
> 如服务测速信息与cloudflare配置如下:
>
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_fastest_ip():
# 执行文件添加执行权限
os.chmod(CloudflareSTDir + '/CloudflareST', 0o755)
# 执行CloudflareST,进行测速优选
# ./CloudflareST -httping -f ip.txt -tl 150 -p 0 -url https://d20c1iz4b4gn9p.cloudfront.net/100m.test -o result.csv
# ./CloudflareST -httping -f ip.txt -tl 150 -p 0 -url https://speed.cloudflare.com/__down?bytes=200000000 -o result.csv

print(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()), '进行', cdnProvider, ' IP优选')
sturl_none_shell = shlex.split('./CloudflareST -f ip.txt -tl 150 -p 0 -dd -o result.csv')
Expand Down

0 comments on commit 14dfc2c

Please sign in to comment.