mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 01:35:38 +08:00
32 lines
388 B
Markdown
32 lines
388 B
Markdown
`socks` 入站是一个 socks4, socks4a 和 socks5 服务器.
|
|
|
|
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "socks",
|
|
"tag": "socks-in",
|
|
|
|
... // 监听字段
|
|
|
|
"users": [
|
|
{
|
|
"username": "admin",
|
|
"password": "admin"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
### 监听字段
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
### 字段
|
|
|
|
#### users
|
|
|
|
SOCKS 用户
|
|
|
|
如果为空则不需要验证。
|