2022-07-08 10:10:39 +00:00
|
|
|
`direct` inbound is a tunnel server.
|
|
|
|
|
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 04:50:26 +00:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct-in",
|
|
|
|
|
|
|
|
... // Listen Fields
|
|
|
|
|
|
|
|
"network": "udp",
|
|
|
|
"override_address": "1.0.0.1",
|
|
|
|
"override_port": 53
|
2022-07-08 10:10:39 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
### Listen Fields
|
|
|
|
|
2023-12-14 14:23:52 +00:00
|
|
|
See [Listen Fields](/configuration/shared/listen/) for details.
|
2022-08-31 04:50:26 +00:00
|
|
|
|
|
|
|
### Fields
|
2022-08-23 15:15:56 +00:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
Listen network, one of `tcp` `udp`.
|
|
|
|
|
|
|
|
Both if empty.
|
|
|
|
|
|
|
|
#### override_address
|
|
|
|
|
|
|
|
Override the connection destination address.
|
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
Override the connection destination port.
|