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

41 lines
493 B
Markdown
Raw Normal View History

2022-08-10 13:17:02 +00:00
### Structure
```json
{
2022-08-31 04:50:26 +00:00
"type": "naive",
"tag": "naive-in",
"network": "udp",
... // Listen Fields
"users": [
2022-08-10 13:17:02 +00:00
{
2022-08-31 04:50:26 +00:00
"username": "sekai",
"password": "password"
2022-08-10 13:17:02 +00:00
}
2022-08-31 04:50:26 +00:00
],
"tls": {}
2022-08-10 13:17:02 +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`.
2022-08-23 15:15:56 +00:00
Both if empty.
2022-08-23 15:15:56 +00:00
#### users
==Required==
Naive users.
#### tls
2022-08-23 15:15:56 +00:00
2022-08-31 04:50:26 +00:00
TLS configuration, see [TLS](/configuration/shared/tls/#inbound).