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