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-08-19 01:13:07 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-08-19 01:13:07 +0300
commit2471bda2118610ba7974ddaa9eb846bc11cbc7cc (patch)
treebcd5b2b4ef45da2f185fb37c45501b2cef99e4f7
parentcd499715359f4792e0e9b8f7d5a27668608eb32c (diff)
New - Splithttp (xPaddingBytes)
-rw-r--r--web/assets/js/model/xray.js4
-rw-r--r--web/html/xui/form/stream/stream_splithttp.html3
2 files changed, 7 insertions, 0 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index b43452b6..80f2ac15 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -559,6 +559,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMaxEachPostBytes = "1000000-2000000",
scMinPostsIntervalMs = "10-50",
noSSEHeader = false,
+ xPaddingBytes = "100-1000",
) {
super();
this.path = path;
@@ -568,6 +569,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.scMaxEachPostBytes = scMaxEachPostBytes;
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
this.noSSEHeader = noSSEHeader;
+ this.xPaddingBytes = xPaddingBytes;
}
addHeader(name, value) {
@@ -587,6 +589,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
json.scMaxEachPostBytes,
json.scMinPostsIntervalMs,
json.noSSEHeader,
+ json.xPaddingBytes,
);
}
@@ -599,6 +602,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMaxEachPostBytes: this.scMaxEachPostBytes,
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
noSSEHeader: this.noSSEHeader,
+ xPaddingBytes: this.xPaddingBytes,
};
}
}
diff --git a/web/html/xui/form/stream/stream_splithttp.html b/web/html/xui/form/stream/stream_splithttp.html
index baf76d0a..bf706922 100644
--- a/web/html/xui/form/stream/stream_splithttp.html
+++ b/web/html/xui/form/stream/stream_splithttp.html
@@ -28,6 +28,9 @@
<a-form-item label="Min Upload Interval (Ms)">
<a-input v-model.trim="inbound.stream.splithttp.scMinPostsIntervalMs"></a-input>
</a-form-item>
+ <a-form-item label="Padding Bytes">
+ <a-input v-model.trim="inbound.stream.splithttp.xPaddingBytes"></a-input>
+ </a-form-item>
<a-form-item label="No SSE Header">
<a-switch v-model="inbound.stream.splithttp.noSSEHeader"></a-switch>
</a-form-item>