mirror of
https://github.com/XIU2/CloudflareSpeedTest.git
synced 2026-05-01 03:33:13 +08:00
修复 CFST新版本下获取不到第一行 IP 的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
:: --------------------------------------------------------------
|
||||
:: 项目: CloudflareSpeedTest 自动更新 3Proxy
|
||||
:: 版本: 1.0.5
|
||||
:: 版本: 1.0.6
|
||||
:: 作者: XIU2
|
||||
:: 项目: https://github.com/XIU2/CloudflareSpeedTest
|
||||
:: --------------------------------------------------------------
|
||||
@@ -67,13 +67,11 @@ if not exist result_3proxy.txt (
|
||||
)
|
||||
|
||||
:: 获取第一行的最快 IP
|
||||
for /f "tokens=1 delims=," %%i in (result_3proxy.txt) do (
|
||||
set /a n+=1
|
||||
If !n!==2 (
|
||||
set bestip=%%i
|
||||
goto :END
|
||||
)
|
||||
for /f "skip=1 tokens=1 delims=," %%i in ('more result_3proxy.txt') do (
|
||||
SET bestip=%%i
|
||||
goto :END
|
||||
)
|
||||
|
||||
:END
|
||||
|
||||
:: 判断刚刚获取的最快 IP 是否为空,以及是否和旧 IP 一样
|
||||
|
||||
Reference in New Issue
Block a user