mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-27 11:01:28 +00:00
59 lines
703 B
Markdown
59 lines
703 B
Markdown
`http` 出站是一个 HTTP CONNECT 代理客户端
|
|
|
|
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "http",
|
|
"tag": "http-out",
|
|
|
|
"server": "127.0.0.1",
|
|
"server_port": 1080,
|
|
"username": "sekai",
|
|
"password": "admin",
|
|
"path": "",
|
|
"headers": {},
|
|
"tls": {},
|
|
|
|
... // 拨号字段
|
|
}
|
|
```
|
|
|
|
### 字段
|
|
|
|
#### server
|
|
|
|
==必填==
|
|
|
|
服务器地址。
|
|
|
|
#### server_port
|
|
|
|
==必填==
|
|
|
|
服务器端口。
|
|
|
|
#### username
|
|
|
|
Basic 认证用户名。
|
|
|
|
#### password
|
|
|
|
Basic 认证密码。
|
|
|
|
#### path
|
|
|
|
HTTP 请求路径。
|
|
|
|
#### headers
|
|
|
|
HTTP 请求的额外标头。
|
|
|
|
#### tls
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
|
|
|
### 拨号字段
|
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|