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:
Kobe Arthur Scofield
2024-09-15 18:22:25 +08:00
committed by GitHub
parent 1587d41ba3
commit 45353cd860
11 changed files with 137 additions and 67 deletions
-6
View File
@@ -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 @@ userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值.
"address": "mc.hypixel.net",
"port": 25565,
"network": "tcp",
"timeout": 0,
"followRedirect": false,
"userLevel": 0
},
-7
View File
@@ -23,7 +23,6 @@ HTTP 协议。
```json
{
"timeout": 0,
"accounts": [
{
"user": "my-username",
@@ -35,12 +34,6 @@ HTTP 协议。
}
```
> `timeout`: number
连接空闲的时间限制。单位为秒。默认值为 `300`, 0 表示不限时。
处理一个连接时,如果在 `timeout` 时间内,没有任何数据被传输,则中断该连接。
> `accounts`: \[[AccountObject](#accountobject)\]
一个数组,数组中每个元素为一个用户帐号。默认值为空。