mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 11:44:13 +08:00
62 lines
784 B
Markdown
62 lines
784 B
Markdown
---
|
|
icon: material/new-box
|
|
---
|
|
|
|
!!! question "自 sing-box 1.12.0 起"
|
|
|
|
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "anytls",
|
|
"tag": "anytls-in",
|
|
|
|
... // 监听字段
|
|
|
|
"users": [
|
|
{
|
|
"name": "sekai",
|
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
|
}
|
|
],
|
|
"padding_scheme": [],
|
|
"tls": {}
|
|
}
|
|
```
|
|
|
|
### 监听字段
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
### 字段
|
|
|
|
#### users
|
|
|
|
==必填==
|
|
|
|
AnyTLS 用户。
|
|
|
|
#### padding_scheme
|
|
|
|
AnyTLS 填充方案行数组。
|
|
|
|
默认填充方案:
|
|
|
|
```json
|
|
[
|
|
"stop=8",
|
|
"0=30-30",
|
|
"1=100-400",
|
|
"2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000",
|
|
"3=9-9,500-1000",
|
|
"4=500-1000",
|
|
"5=500-1000",
|
|
"6=500-1000",
|
|
"7=500-1000"
|
|
]
|
|
```
|
|
|
|
#### tls
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#inbound)。
|