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

45 lines
720 B
Markdown
Raw Normal View History

2022-07-08 18:10:39 +08:00
`mixed` inbound is a socks4, socks4a, socks5 and http server.
### Structure
```json
{
2022-08-31 12:50:26 +08:00
"type": "mixed",
"tag": "mixed-in",
... // Listen Fields
"users": [
2022-07-08 18:10:39 +08:00
{
2022-08-31 12:50:26 +08:00
"username": "admin",
"password": "admin"
2022-07-08 18:10:39 +08:00
}
2022-08-31 12:50:26 +08:00
],
"set_system_proxy": false
2022-07-08 18:10:39 +08:00
}
```
### Listen Fields
2022-08-31 12:50:26 +08:00
See [Listen Fields](/configuration/shared/listen) for details.
2022-07-08 18:10:39 +08:00
2022-08-31 12:50:26 +08:00
### Fields
2022-08-31 12:50:26 +08:00
#### users
2022-07-08 18:10:39 +08:00
2022-08-31 12:50:26 +08:00
SOCKS and HTTP users.
2022-07-08 18:10:39 +08:00
2022-08-31 12:50:26 +08:00
No authentication required if empty.
2022-07-08 18:10:39 +08:00
2022-07-14 14:29:28 +08:00
#### set_system_proxy
!!! error ""
2022-08-04 22:01:20 +08:00
Only supported on Linux, Android, Windows, and macOS.
2022-07-14 14:29:28 +08:00
!!! warning ""
To work on Android and iOS without privileges, use tun.platform.http_proxy instead.
Automatically set system proxy configuration when start and clean up when stop.