Skip to content

Commit

Permalink
支持新版CloudflareST的输出
Browse files Browse the repository at this point in the history
  • Loading branch information
EzXxY authored Dec 25, 2023
1 parent 1f48498 commit de02dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpeedTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def run_command(ip_port: str, output_file: str) -> None:
ip, port = ip_port.split(':')

# 【!!!如果哪天下面这个测速链接不能用了,请换成自己的测速链接!!!】
command = f"CloudflareST.exe -url https://cloudflare.cdn.openbsd.org/pub/OpenBSD/7.3/src.tar.gz -o "" -tl 5000 -dn 20 -p 20 -ip {ip} -tp {port}"
command = f"CloudflareST.exe -ip {ip} -tp {port} -url https://cloudflare.cdn.openbsd.org/pub/OpenBSD/7.3/src.tar.gz -o "" -tl 5000 -dn 20 -p 20"

with open(output_file, "w") as file:
process = subprocess.Popen(command, shell=True, stdout=file, stderr=subprocess.STDOUT,
Expand Down

0 comments on commit de02dc5

Please sign in to comment.