Ver Fonte

fix: change cfst test url

Dew-OF-Aurora há 2 semanas atrás
pai
commit
448bc58c72

+ 3 - 0
README.md

@@ -330,6 +330,7 @@ cat runtime/state.json
 - **配置关键**(`configs/config.local.json`):
   - `cfst_local.work_dir`:测速工作目录(如 `./cfst_darwin_arm64`)
   - `cfst_local.binary`:测速程序路径(如 `./cfst`)
+  - `cfst_local.run_args`:cfst 参数;测速地址统一为 `-url https://speed.cloudflare.com/__down?bytes=50000000`,避免依赖默认地址
   - `cfst_local.skip_run`:设为 `true` 时仅解析现有 `result.csv`,设为 `false` 时每次调用二进制执行测速。
 - **下载测速保护**:系统自动剔除 `download_speed == 0.00` 的失效死节点;当在 `run_args` 中显式指定 `-dd`(禁用下载测速)时,自动转为按平均延迟排序。
 
@@ -354,6 +355,8 @@ cat runtime/state.json
     ├── cfst / ip.txt / result.csv         # 测速二进制与网段文件
 ```
 
+测速地址由 `config_router.conf` 的 `CFST_URL` 指定,默认 `https://speed.cloudflare.com/__down?bytes=50000000`,与本地 Python 模式保持一致。
+
 ---
 
 ### 4.2 [最佳实践] 延长路由器闪存寿命(动静分离防擦写)

+ 3 - 1
configs/config.local.json

@@ -11,7 +11,9 @@
       "-o",
       "result.csv",
       "-p",
-      "10"
+      "10",
+      "-url",
+      "https://speed.cloudflare.com/__down?bytes=50000000"
     ],
     "result_file": "result.csv",
     "run_timeout_sec": 600,

+ 1 - 1
configs/config_router.conf

@@ -8,7 +8,7 @@ CFST_TEST_COUNT=""
 CFST_DOWNLOAD_COUNT=""
 CFST_DOWNLOAD_TIME=""
 CFST_PORT="443"
-CFST_URL=""
+CFST_URL="https://speed.cloudflare.com/__down?bytes=50000000"
 CFST_HTTPING="0"
 CFST_HTTPING_CODE=""
 CFST_CFCOLO=""

+ 1 - 1
scripts/router/router_local_update.sh

@@ -49,7 +49,7 @@ CFST_TEST_COUNT=${CFST_TEST_COUNT:-}
 CFST_DOWNLOAD_COUNT=${CFST_DOWNLOAD_COUNT:-}
 CFST_DOWNLOAD_TIME=${CFST_DOWNLOAD_TIME:-}
 CFST_PORT=${CFST_PORT:-443}
-CFST_URL=${CFST_URL:-}
+CFST_URL=${CFST_URL:-"https://speed.cloudflare.com/__down?bytes=50000000"}
 CFST_HTTPING=${CFST_HTTPING:-0}
 CFST_HTTPING_CODE=${CFST_HTTPING_CODE:-}
 CFST_CFCOLO=${CFST_CFCOLO:-}