URLTest
结构
{
"type": "urltest",
"tag": "auto",
"outbounds": [
"proxy-a",
"proxy-b",
"proxy-c"
],
"providers": [
"provider-a"
],
"exclude": "beta",
"include": "v2ray",
"use_all_providers": false,
"url": "",
"interval": "",
"tolerance": 50,
"idle_timeout": "",
"interrupt_exist_connections": false
}
字段
outbounds
用于测试的出站标签列表。
providers
出站提供者 的标签列表。这些提供者的出站会加入分组。
exclude
过滤掉出站提供者中标签匹配该正则表达式的出站。
include
仅保留出站提供者中标签匹配该正则表达式的出站。
use_all_providers
使用配置中的所有出站提供者。
url
用于测试的链接。默认使用 https://www.gstatic.com/generate_204。
interval
测试间隔。 默认使用 3m。
tolerance
以毫秒为单位的测试容差。 默认使用 50。
idle_timeout
空闲超时。默认使用 30m。
interrupt_exist_connections
当选定的出站发生更改时,中断现有连接。
仅入站连接受此设置影响,内部连接将始终被中断。