proxy_test
Test latency for a proxy by measuring response delay to a target URL, with optional timeout. Returns delay in milliseconds, or -1 when the test fails.
Instructions
Test latency (ms) for a single proxy.
Args: proxy: proxy name (must match an entry in a group's all-list) url: target URL, default is gstatic.com/generate_204 (used by mihomo itself) timeout_ms: per-test timeout in milliseconds (default 5000)
Returns the delay in ms, or {"delay": -1} if the test failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http://www.gstatic.com/generate_204 | |
| proxy | Yes | ||
| timeout_ms | No |