mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-07 14:28:03 +03:00
Remove legacy timeout config (#577)
* Remove `timeout` field in dokodemo-door * Remove `timeout` field in HTTP inbound * Minor fixes to The Great Chronicles * Force update wireguard inbound to russian docs
This commit is contained in:
@@ -9,7 +9,6 @@ Dokodemo door может прослушивать локальный порт и
|
||||
"address": "8.8.8.8",
|
||||
"port": 53,
|
||||
"network": "tcp",
|
||||
"timeout": 0,
|
||||
"followRedirect": false,
|
||||
"userLevel": 0
|
||||
}
|
||||
@@ -29,10 +28,6 @@ Dokodemo door может прослушивать локальный порт и
|
||||
|
||||
Поддерживаемые типы сетевых протоколов. Например, если указано `"tcp"`, то будет приниматься только трафик TCP. Значение по умолчанию: `"tcp"`.
|
||||
|
||||
> `timeout`: number
|
||||
|
||||
Ограничение времени простоя соединения. Измеряется в секундах. Значение по умолчанию: `300`. Если во время обработки соединения в течение `timeout` секунд не передается никаких данных, соединение разрывается.
|
||||
|
||||
> `followRedirect`: true | false
|
||||
|
||||
Если значение равно `true`, dokodemo-door будет распознавать данные, перенаправленные iptables, и пересылать их на соответствующий целевой адрес.
|
||||
@@ -62,7 +57,6 @@ Dokodemo door может прослушивать локальный порт и
|
||||
"address": "mc.hypixel.net",
|
||||
"port": 25565,
|
||||
"network": "tcp",
|
||||
"timeout": 0,
|
||||
"followRedirect": false,
|
||||
"userLevel": 0
|
||||
},
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
```json
|
||||
{
|
||||
"timeout": 0,
|
||||
"accounts": [
|
||||
{
|
||||
"user": "my-username",
|
||||
@@ -35,12 +34,6 @@
|
||||
}
|
||||
```
|
||||
|
||||
> `timeout`: number
|
||||
|
||||
Ограничение времени простоя соединения. Измеряется в секундах. Значение по умолчанию: `300`, значение 0 означает отсутствие ограничения времени.
|
||||
|
||||
Если в течение `timeout` секунд во время обработки соединения не было передано никаких данных, соединение разрывается.
|
||||
|
||||
> `accounts`: \[[AccountObject](#accountobject)\]
|
||||
|
||||
Массив, каждый элемент которого представляет собой учетную запись пользователя. Значение по умолчанию: пустой массив.
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
# Wireguard
|
||||
|
||||
User-space implementation of the Wireguard protocol.
|
||||
|
||||
::: danger
|
||||
**The Wireguard protocol is not specifically designed for circumvention purposes. If used as the outer layer for circumvention, its characteristics may lead to server blocking.**
|
||||
:::
|
||||
|
||||
## InboundConfigurationObject
|
||||
|
||||
```json
|
||||
{
|
||||
"secretKey": "PRIVATE_KEY",
|
||||
"peers": [
|
||||
{
|
||||
"publicKey": "PUBLIC_KEY",
|
||||
"allowedIPs":[""]
|
||||
}
|
||||
],
|
||||
"kernelMode": true, // optional, default true if it's supported and permission is sufficient
|
||||
"mtu": 1420, // optional, default 1420
|
||||
}
|
||||
```
|
||||
|
||||
> `secretKey`: string
|
||||
|
||||
Private key. Required.
|
||||
|
||||
> `mtu`: int
|
||||
|
||||
Fragmentation size of the underlying Wireguard tun.
|
||||
|
||||
<details>
|
||||
<summary>MTU Calculation Method</summary>
|
||||
|
||||
The structure of a Wireguard packet is as follows:
|
||||
|
||||
```
|
||||
- 20-byte IPv4 header or 40 byte IPv6 header
|
||||
- 8-byte UDP header
|
||||
- 4-byte type
|
||||
- 4-byte key index
|
||||
- 8-byte nonce
|
||||
- N-byte encrypted data
|
||||
- 16-byte authentication tag
|
||||
```
|
||||
|
||||
`N-byte encrypted data` is the MTU value we need. Depending on whether the endpoint is IPv4 or IPv6, the specific values can be 1440 (IPv4) or 1420 (IPv6). If in a special environment, subtract additional bytes accordingly (e.g., subtract 8 more bytes for PPPoE over home broadband).
|
||||
|
||||
</details>
|
||||
|
||||
> `peers`: \[ [Peers](#peers) \]
|
||||
|
||||
List of peer servers, where each entry is a server configuration.
|
||||
|
||||
### Peers
|
||||
|
||||
```json
|
||||
{
|
||||
"publicKey": "PUBLIC_KEY",
|
||||
"allowedIPs": ["0.0.0.0/0"] // optional, default ["0.0.0.0/0", "::/0"]
|
||||
}
|
||||
```
|
||||
|
||||
> `publicKey`: string
|
||||
|
||||
Public key, used for verification.
|
||||
|
||||
> `allowedIPs`: string array
|
||||
|
||||
Allowed source IPs.
|
||||
Reference in New Issue
Block a user