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

41 lines
493 B
Markdown
Raw Normal View History

2022-08-10 21:17:02 +08:00
### Structure
```json
{
2022-08-31 12:50:26 +08:00
"type": "naive",
"tag": "naive-in",
"network": "udp",
... // Listen Fields
"users": [
2022-08-10 21:17:02 +08:00
{
2022-08-31 12:50:26 +08:00
"username": "sekai",
"password": "password"
2022-08-10 21:17:02 +08:00
}
2022-08-31 12:50:26 +08:00
],
"tls": {}
2022-08-10 21:17:02 +08:00
}
```
2022-08-31 12:50:26 +08:00
### Listen Fields
2023-12-14 22:23:52 +08:00
See [Listen Fields](/configuration/shared/listen/) for details.
2022-08-31 12:50:26 +08:00
### Fields
2022-08-23 23:15:56 +08:00
#### network
Listen network, one of `tcp` `udp`.
2022-08-23 23:15:56 +08:00
Both if empty.
2022-08-23 23:15:56 +08:00
#### users
==Required==
Naive users.
#### tls
2022-08-23 23:15:56 +08:00
2022-08-31 12:50:26 +08:00
TLS configuration, see [TLS](/configuration/shared/tls/#inbound).