Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-12-16 23:21:29 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-12-17 12:39:37 +0300
commit0df85cc3d9d418d3abc335047c7bd2c8794685fa (patch)
tree2416bd0f9746e35bb97f9dcfc912bb0388a8dd96 /web/assets/js/model/outbound.js
parentf0f4f082ae0bc8e53b8db8fd547efe79fed1d6d4 (diff)
XHTTP: server & client
Remove scMinPostsIntervalMs, xmux, noGRPCHeader from the server side and add them to the client side. Before you could have them on sub json but I decided to remove them.
Diffstat (limited to 'web/assets/js/model/outbound.js')
-rw-r--r--web/assets/js/model/outbound.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 7a53383c..fae1a879 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -287,11 +287,24 @@ class xHTTPStreamSettings extends CommonClass {
path = '/',
host = '',
mode = '',
+ noGRPCHeader = false,
+ scMinPostsIntervalMs = "30",
+ xmux = {
+ maxConcurrency: "16-32",
+ maxConnections: 0,
+ cMaxReuseTimes: "64-128",
+ cMaxLifetimeMs: 0,
+ hMaxRequestTimes: "800-900",
+ hKeepAlivePeriod: 0,
+ },
) {
super();
this.path = path;
this.host = host;
this.mode = mode;
+ this.noGRPCHeader = noGRPCHeader;
+ this.scMinPostsIntervalMs = scMinPostsIntervalMs;
+ this.xmux = xmux;
}
static fromJson(json = {}) {
@@ -299,6 +312,9 @@ class xHTTPStreamSettings extends CommonClass {
json.path,
json.host,
json.mode,
+ json.noGRPCHeader,
+ json.scMinPostsIntervalMs,
+ json.xmux
);
}
@@ -307,6 +323,16 @@ class xHTTPStreamSettings extends CommonClass {
path: this.path,
host: this.host,
mode: this.mode,
+ noGRPCHeader: this.noGRPCHeader,
+ scMinPostsIntervalMs: this.scMinPostsIntervalMs,
+ xmux: {
+ maxConcurrency: this.xmux.maxConcurrency,
+ maxConnections: this.xmux.maxConnections,
+ cMaxReuseTimes: this.xmux.cMaxReuseTimes,
+ cMaxLifetimeMs: this.xmux.cMaxLifetimeMs,
+ hMaxRequestTimes: this.xmux.hMaxRequestTimes,
+ hKeepAlivePeriod: this.xmux.hKeepAlivePeriod,
+ },
};
}
}