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

49 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

---
icon: material/alert-decagram
---
!!! quote "Changes in sing-box 1.11.0"
:material-alert-decagram: [override_address](#override_address)
:material-alert-decagram: [override_port](#override_port)
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,
... // 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
!!! failure "Deprecated in sing-box 1.11.0"
Destination override fields are deprecated in sing-box 1.11.0 and will be removed in sing-box 1.13.0, see [Migration](/migration/#migrate-destination-override-fields-to-route-options).
2022-07-08 10:48:43 +00:00
Override the connection destination address.
#### override_port
!!! failure "Deprecated in sing-box 1.11.0"
2022-07-08 10:48:43 +00:00
Destination override fields are deprecated in sing-box 1.11.0 and will be removed in sing-box 1.13.0, see [Migration](/migration/#migrate-destination-override-fields-to-route-options).
2022-08-23 15:15:56 +00:00
Override the connection destination port.
2022-08-23 15:15:56 +00:00
Protocol value can be `1` or `2`.
2022-07-08 10:48:43 +00:00
### Dial Fields
2023-12-14 14:23:52 +00:00
See [Dial Fields](/configuration/shared/dial/) for details.