2024-11-15 05:33:35 +00: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 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,
|
|
|
|
|
|
|
|
... // 拨号字段
|
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
|
|
|
|
|
2024-11-15 05:33:35 +00: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 01:45:22 +00:00
|
|
|
覆盖连接目标地址。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
2024-11-15 05:33:35 +00:00
|
|
|
!!! failure "已在 sing-box 1.11.0 废弃"
|
2022-08-24 13:02:28 +00:00
|
|
|
|
2024-11-15 05:33:35 +00:00
|
|
|
目标覆盖字段在 sing-box 1.11.0 中已废弃,并将在 sing-box 1.13.0 中被移除,参阅 [迁移指南](/migration/#migrate-destination-override-fields-to-route-options)。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
2024-11-15 05:33:35 +00:00
|
|
|
覆盖连接目标端口。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|