2022-07-08 18:48:43 +08:00
|
|
|
`direct` outbound send requests directly.
|
|
|
|
|
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 13:21:29 +08:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct-out",
|
|
|
|
|
|
|
|
"override_address": "1.0.0.1",
|
|
|
|
"override_port": 53,
|
|
|
|
"proxy_protocol": 0,
|
|
|
|
|
|
|
|
... // Dial Fields
|
2022-07-08 18:48:43 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### Fields
|
2022-07-08 18:48:43 +08:00
|
|
|
|
|
|
|
#### override_address
|
|
|
|
|
|
|
|
Override the connection destination address.
|
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
|
|
|
Override the connection destination port.
|
|
|
|
|
2022-08-23 23:15:56 +08:00
|
|
|
#### proxy_protocol
|
|
|
|
|
|
|
|
Write [Proxy Protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) in the connection header.
|
|
|
|
|
|
|
|
Protocol value can be `1` or `2`.
|
|
|
|
|
2022-07-08 18:48:43 +08:00
|
|
|
### Dial Fields
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
See [Dial Fields](/configuration/shared/dial) for details.
|