2022-08-24 18:43:39 +08:00
|
|
|
`direct` 入站是一个隧道服务器。
|
|
|
|
|
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 12:50:26 +08:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct-in",
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
... // 监听字段
|
|
|
|
|
|
|
|
"network": "udp",
|
|
|
|
"override_address": "1.0.0.1",
|
|
|
|
"override_port": 53
|
2022-08-24 18:43:39 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
### 监听字段
|
|
|
|
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
|
|
|
|
### 字段
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
监听的网络协议,`tcp` `udp` 之一。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### override_address
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
覆盖连接目标地址。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
覆盖连接目标端口。
|
2022-08-24 18:43:39 +08:00
|
|
|
|