|
@@ -529,6 +529,12 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|
|
scMinPostsIntervalMs = "10-50",
|
|
|
noSSEHeader = false,
|
|
|
xPaddingBytes = "100-1000",
|
|
|
+ xmux = {
|
|
|
+ maxConnections: 0,
|
|
|
+ maxConcurrency: 0,
|
|
|
+ cMaxReuseTimes: 0,
|
|
|
+ cMaxLifetimeMs: 0
|
|
|
+ }
|
|
|
) {
|
|
|
super();
|
|
|
this.path = path;
|
|
@@ -539,6 +545,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|
|
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
|
|
|
this.noSSEHeader = noSSEHeader;
|
|
|
this.xPaddingBytes = xPaddingBytes;
|
|
|
+ this.xmux = xmux;
|
|
|
}
|
|
|
|
|
|
addHeader(name, value) {
|
|
@@ -559,6 +566,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|
|
json.scMinPostsIntervalMs,
|
|
|
json.noSSEHeader,
|
|
|
json.xPaddingBytes,
|
|
|
+ json.xmux,
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -572,6 +580,12 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|
|
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
|
|
|
noSSEHeader: this.noSSEHeader,
|
|
|
xPaddingBytes: this.xPaddingBytes,
|
|
|
+ xmux: {
|
|
|
+ maxConnections: this.xmux.maxConnections,
|
|
|
+ maxConcurrency: this.xmux.maxConcurrency,
|
|
|
+ cMaxReuseTimes: this.xmux.cMaxReuseTimes,
|
|
|
+ cMaxLifetimeMs: this.xmux.cMaxLifetimeMs
|
|
|
+ }
|
|
|
};
|
|
|
}
|
|
|
}
|