2022-08-25 01:45:22 +00:00
|
|
|
`direct` 出站直接发送请求。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 05:21:29 +00:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct-out",
|
|
|
|
|
|
|
|
"override_address": "1.0.0.1",
|
|
|
|
"override_port": 53,
|
|
|
|
"proxy_protocol": 0,
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 13:02:28 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
### 字段
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### override_address
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
覆盖连接目标地址。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
覆盖连接目标端口。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### proxy_protocol
|
|
|
|
|
|
|
|
写出 [代理协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) 到连接头。
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
可用协议版本值:`1` 或 `2`。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|