mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
62 lines
860 B
Markdown
62 lines
860 B
Markdown
---
|
||
icon: material/new-box
|
||
---
|
||
|
||
!!! question "自 sing-box 1.12.0 起"
|
||
|
||
### 结构
|
||
|
||
```json
|
||
{
|
||
"type": "anytls",
|
||
"tag": "anytls-out",
|
||
|
||
"server": "127.0.0.1",
|
||
"server_port": 1080,
|
||
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
||
"idle_session_check_interval": "30s",
|
||
"idle_session_timeout": "30s",
|
||
"tls": {},
|
||
|
||
... // 拨号字段
|
||
}
|
||
```
|
||
|
||
### 字段
|
||
|
||
#### server
|
||
|
||
==必填==
|
||
|
||
服务器地址。
|
||
|
||
#### server_port
|
||
|
||
==必填==
|
||
|
||
服务器端口。
|
||
|
||
#### password
|
||
|
||
==必填==
|
||
|
||
AnyTLS 密码。
|
||
|
||
#### idle_session_check_interval
|
||
|
||
检查空闲会话的时间间隔。默认值:30秒。
|
||
|
||
#### idle_session_timeout
|
||
|
||
在检查中,关闭闲置时间超过此值的会话。默认值:30秒。
|
||
|
||
#### tls
|
||
|
||
==必填==
|
||
|
||
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
||
|
||
### 拨号字段
|
||
|
||
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|