Skip to content

Commit

Permalink
New - Splithttp (xPaddingBytes)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Aug 18, 2024
1 parent cd49971 commit 2471bda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMaxEachPostBytes = "1000000-2000000",
scMinPostsIntervalMs = "10-50",
noSSEHeader = false,
xPaddingBytes = "100-1000",
) {
super();
this.path = path;
Expand All @@ -568,6 +569,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.scMaxEachPostBytes = scMaxEachPostBytes;
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
this.noSSEHeader = noSSEHeader;
this.xPaddingBytes = xPaddingBytes;
}

addHeader(name, value) {
Expand All @@ -587,6 +589,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
json.scMaxEachPostBytes,
json.scMinPostsIntervalMs,
json.noSSEHeader,
json.xPaddingBytes,
);
}

Expand All @@ -599,6 +602,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMaxEachPostBytes: this.scMaxEachPostBytes,
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
noSSEHeader: this.noSSEHeader,
xPaddingBytes: this.xPaddingBytes,
};
}
}
Expand Down
3 changes: 3 additions & 0 deletions web/html/xui/form/stream/stream_splithttp.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2471bda

Please sign in to comment.