sing-box/docs/configuration/outbound/urltest.zh.md

44 lines
721 B
Markdown
Raw Normal View History

2022-09-15 07:22:08 +00:00
### 结构
```json
{
"type": "urltest",
"tag": "auto",
"outbounds": [
"proxy-a",
"proxy-b",
"proxy-c"
],
2023-04-13 01:03:08 +00:00
"url": "https://www.gstatic.com/generate_204",
2022-09-15 07:22:08 +00:00
"interval": "1m",
"tolerance": 50,
"interrupt_exist_connections": false
2022-09-15 07:22:08 +00:00
}
```
### 字段
#### outbounds
==必填==
用于测试的出站标签列表。
#### url
2023-04-13 01:03:08 +00:00
用于测试的链接。默认使用 `https://www.gstatic.com/generate_204`
2022-09-15 07:22:08 +00:00
#### interval
测试间隔。 默认使用 `1m`
#### tolerance
以毫秒为单位的测试容差。 默认使用 `50`
#### interrupt_exist_connections
当选定的出站发生更改时,中断现有连接。
仅入站连接受此设置影响,内部连接将始终被中断。