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-07-29 14:05:05 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-29 14:05:05 +0300
commit4ec104c5ee1e5dc06e7078fb09c3f0b7a26a0e44 (patch)
tree87a60dabccc07b3deddeb532c6440ab011621a54
parentbae89272b0b15ae5dcae026639992d0c3308cd36 (diff)
new - splithttp (scMinPostsIntervalMs)
-rw-r--r--web/assets/js/model/xray.js17
-rw-r--r--web/html/xui/form/stream/stream_splithttp.html9
2 files changed, 16 insertions, 10 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index ccfc0bbb..34a884ca 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -523,13 +523,14 @@ class HTTPUpgradeStreamSettings extends XrayCommonClass {
}
class SplitHTTPStreamSettings extends XrayCommonClass {
- constructor(path='/', host='', headers=[] , maxUploadSize= 1000000, maxConcurrentUploads= 10) {
+ constructor(path='/', host='', headers=[] , scMaxConcurrentPosts= 100, scMaxEachPostBytes= 1000000, scMinPostsIntervalMs= 30) {
super();
this.path = path;
this.host = host;
this.headers = headers;
- this.maxUploadSize = maxUploadSize;
- this.maxConcurrentUploads = maxConcurrentUploads;
+ this.scMaxConcurrentPosts = scMaxConcurrentPosts;
+ this.scMaxEachPostBytes = scMaxEachPostBytes;
+ this.scMinPostsIntervalMs = scMinPostsIntervalMs;
}
addHeader(name, value) {
@@ -545,8 +546,9 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
json.path,
json.host,
XrayCommonClass.toHeaders(json.headers),
- json.maxUploadSize,
- json.maxConcurrentUploads,
+ json.scMaxConcurrentPosts,
+ json.scMaxEachPostBytes,
+ json.scMinPostsIntervalMs,
);
}
@@ -555,8 +557,9 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
path: this.path,
host: this.host,
headers: XrayCommonClass.toV2Headers(this.headers, false),
- maxUploadSize: this.maxUploadSize,
- maxConcurrentUploads: this.maxConcurrentUploads,
+ scMaxConcurrentPosts: this.scMaxConcurrentPosts,
+ scMaxEachPostBytes: this.scMaxEachPostBytes,
+ scMinPostsIntervalMs: this.scMinPostsIntervalMs,
};
}
}
diff --git a/web/html/xui/form/stream/stream_splithttp.html b/web/html/xui/form/stream/stream_splithttp.html
index 507bd773..097bb421 100644
--- a/web/html/xui/form/stream/stream_splithttp.html
+++ b/web/html/xui/form/stream/stream_splithttp.html
@@ -19,11 +19,14 @@
</a-input>
</a-input-group>
</a-form-item>
+ <a-form-item label="Max Concurrent Upload">
+ <a-input-number v-model="inbound.stream.splithttp.scMaxConcurrentPosts" :min="0"></a-input-number>
+ </a-form-item>
<a-form-item label="Max Upload Size (Byte)">
- <a-input-number v-model="inbound.stream.splithttp.maxUploadSize" :min="0"></a-input-number>
+ <a-input-number v-model="inbound.stream.splithttp.scMaxEachPostBytes" :min="0"></a-input-number>
</a-form-item>
- <a-form-item label="Max Concurrent Upload">
- <a-input-number v-model="inbound.stream.splithttp.maxConcurrentUploads" :min="0"></a-input-number>
+ <a-form-item label="Min Upload Interval Ms">
+ <a-input-number v-model="inbound.stream.splithttp.scMinPostsIntervalMs" :min="0"></a-input-number>
</a-form-item>
</a-form>
{{end}}