mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-04 02:38:42 +00:00
XHTTP client: Change default maxConnections to 6 for anti-RKN
"xmux": {
"maxConcurrency": 0,
"maxConnections": "6",
"cMaxReuseTimes": 0,
"hMaxRequestTimes": "600-900",
"hMaxReusableSecs": "1800-3000",
"hKeepAlivePeriod": 0
}
Replaces https://github.com/XTLS/Xray-core/commit/9cc7907234a8297a87a0ff77fc40db373b74a0f2 and https://github.com/XTLS/Xray-core/commit/4ce65fc74c4c50919b10b3faff9725f75bba5d73
Closes https://github.com/XTLS/Xray-core/issues/6376#issuecomment-4817033592
This commit is contained in:
@@ -404,8 +404,8 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|||||||
return nil, errors.New("maxConnections cannot be specified together with maxConcurrency")
|
return nil, errors.New("maxConnections cannot be specified together with maxConcurrency")
|
||||||
}
|
}
|
||||||
if c.Xmux == (XmuxConfig{}) {
|
if c.Xmux == (XmuxConfig{}) {
|
||||||
c.Xmux.MaxConcurrency.From = 1
|
c.Xmux.MaxConnections.From = 6
|
||||||
c.Xmux.MaxConcurrency.To = 1
|
c.Xmux.MaxConnections.To = 6
|
||||||
c.Xmux.HMaxRequestTimes.From = 600
|
c.Xmux.HMaxRequestTimes.From = 600
|
||||||
c.Xmux.HMaxRequestTimes.To = 900
|
c.Xmux.HMaxRequestTimes.To = 900
|
||||||
c.Xmux.HMaxReusableSecs.From = 1800
|
c.Xmux.HMaxReusableSecs.From = 1800
|
||||||
|
|||||||
Reference in New Issue
Block a user