mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-06 21:37:35 +03:00
Update documentation
This commit is contained in:
parent
f008d0bde3
commit
aa074a2063
17 changed files with 382 additions and 47 deletions
|
@ -15,14 +15,14 @@
|
|||
"sniff": false,
|
||||
"sniff_override_destination": false,
|
||||
"domain_strategy": "prefer_ipv6",
|
||||
|
||||
|
||||
"tls": {},
|
||||
"users": [
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "admin"
|
||||
}
|
||||
],
|
||||
|
||||
"set_system_proxy": false
|
||||
}
|
||||
]
|
||||
|
@ -77,6 +77,10 @@ Automatically set system proxy configuration when start and clean up when stop.
|
|||
|
||||
### HTTP Fields
|
||||
|
||||
#### tls
|
||||
|
||||
TLS configuration, see [TLS inbound structure](/configuration/shared/tls/#inbound-structure).
|
||||
|
||||
#### users
|
||||
|
||||
HTTP users.
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/128",
|
||||
"mtu": 1500,
|
||||
"auto_route": true,
|
||||
|
||||
"endpoint_independent_nat": false,
|
||||
"udp_timeout": 300,
|
||||
"sniff": true,
|
||||
"sniff_override_destination": false,
|
||||
"domain_strategy": "prefer_ipv4"
|
||||
|
@ -48,6 +48,16 @@ Set the default route to the Tun.
|
|||
|
||||
To avoid traffic loopback, set `route.auto_detect_interface` or `route.default_interface` or `outbound.bind_interface`
|
||||
|
||||
#### endpoint_independent_nat
|
||||
|
||||
Enabled endpoint-independent NAT.
|
||||
|
||||
Performance may degrade slightly, so it is not recommended to enable on when it is not needed.
|
||||
|
||||
#### udp_timeout
|
||||
|
||||
UDP NAT expiration time in seconds, default is 300 (5 minutes).
|
||||
|
||||
### Listen Fields
|
||||
|
||||
#### sniff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue