feat: default auto lat-top and speed-top to 0 (keep all)
- lat-top now defaults to 0 so every IP within --lat-max feeds the speed stage, instead of capping at the fastest 30 - speed-top now defaults to 0 so every IP passing --min-speed is written to result.txt, instead of capping at 10 - downstream truncation already treats 0 as keep-all; update README
This commit is contained in:
@@ -92,8 +92,8 @@ flowchart LR
|
||||
| --- | --- | --- |
|
||||
| `[NODE]` / `--node-file` | — | 节点 URL,或从文件读取 |
|
||||
| `-n, --count` | 50 | 阶段 1 收集的有效 IP 数 |
|
||||
| `--lat-top` | 30 | 阶段 2 保留的最快 IP 数 |
|
||||
| `--speed-top` | 10 | 最终节点数 |
|
||||
| `--lat-top` | 0 | 阶段 2 保留的最快 IP 数(0 = 全部) |
|
||||
| `--speed-top` | 0 | 最终节点数(0 = 全部) |
|
||||
| `--speed-concurrency` | 1 | 测速并发数(1 最准,调大更快) |
|
||||
| `-6, --ipv6` | off | 同时测 IPv6 |
|
||||
| `--ping-max` | 300 | 第一次 ping(TCP)延迟上限 ms |
|
||||
|
||||
+4
-3
@@ -47,11 +47,12 @@ pub(crate) struct AutoArgs {
|
||||
pub(crate) count: usize,
|
||||
|
||||
/// Stage 2: keep the fastest N after latency (feeds the speed stage).
|
||||
#[arg(long, default_value_t = 30)]
|
||||
/// 0 = keep all that pass.
|
||||
#[arg(long, default_value_t = 0)]
|
||||
pub(crate) lat_top: usize,
|
||||
|
||||
/// Stage 3: final node count written to result.txt.
|
||||
#[arg(long, default_value_t = 10)]
|
||||
/// Stage 3: final node count written to result.txt. 0 = keep all.
|
||||
#[arg(long, default_value_t = 0)]
|
||||
pub(crate) speed_top: usize,
|
||||
|
||||
/// Stage 3: concurrent downloads during the speed test (1 = most accurate).
|
||||
|
||||
Reference in New Issue
Block a user