sing-box/docs/configuration/outbound/direct.md

37 lines
611 B
Markdown
Raw Normal View History

2022-07-08 10:48:43 +00:00
`direct` outbound send requests directly.
### Structure
```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,
... // Dial Fields
2022-07-08 10:48:43 +00:00
}
```
2022-08-31 05:21:29 +00:00
### Fields
2022-07-08 10:48:43 +00:00
#### override_address
Override the connection destination address.
#### override_port
Override the connection destination port.
2022-08-23 15:15:56 +00: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 10:48:43 +00:00
### Dial Fields
2022-08-31 05:21:29 +00:00
See [Dial Fields](/configuration/shared/dial) for details.