Files
sing-box-extended-mirror/docs/configuration/outbound/direct.zh.md
T

47 lines
1.0 KiB
Markdown
Raw Normal View History

2024-11-14 18:31:37 +08:00
---
icon: material/alert-decagram
---
!!! quote "sing-box 1.11.0 中的更改"
:material-alert-decagram: [override_address](#override_address)
:material-alert-decagram: [override_port](#override_port)
2022-08-25 09:45:22 +08:00
`direct` 出站直接发送请求。
### 结构
```json
{
2022-08-31 13:21:29 +08:00
"type": "direct",
"tag": "direct-out",
"override_address": "1.0.0.1",
"override_port": 53,
... // 拨号字段
}
```
2022-08-31 13:21:29 +08:00
### 字段
#### override_address
2024-11-14 18:31:37 +08:00
!!! failure "已在 sing-box 1.11.0 废弃"
目标覆盖字段在 sing-box 1.11.0 中已废弃,并将在 sing-box 1.13.0 中被移除,参阅 [迁移指南](/migration/#migrate-destination-override-fields-to-route-options)。
2022-08-25 09:45:22 +08:00
覆盖连接目标地址。
#### override_port
2024-11-14 18:31:37 +08:00
!!! failure "已在 sing-box 1.11.0 废弃"
2024-11-14 18:31:37 +08:00
目标覆盖字段在 sing-box 1.11.0 中已废弃,并将在 sing-box 1.13.0 中被移除,参阅 [迁移指南](/migration/#migrate-destination-override-fields-to-route-options)。
2024-11-14 18:31:37 +08:00
覆盖连接目标端口。
### 拨号字段
2022-08-31 13:21:29 +08:00
参阅 [拨号字段](/zh/configuration/shared/dial/)。