sing-box/docs/configuration/inbound/direct.md

36 lines
506 B
Markdown
Raw Normal View History

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