New - Splithttp (xPaddingBytes)

This commit is contained in:
mhsanaei 2024-08-19 00:13:07 +02:00
parent cd49971535
commit 2471bda211
2 changed files with 7 additions and 0 deletions

View file

@ -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,
};
}
}

View file

@ -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>