Skip to content

Commit 7911eeb

Browse files
committed
XHTTP - scStreamUpServerSecs
1 parent 6e9180a commit 7911eeb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

web/assets/js/model/inbound.js

+4
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
493493
headers = [],
494494
scMaxBufferedPosts = 30,
495495
scMaxEachPostBytes = "1000000",
496+
scStreamUpServerSecs = "0",
496497
noSSEHeader = false,
497498
xPaddingBytes = "100-1000",
498499
mode = MODE_OPTION.AUTO,
@@ -503,6 +504,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
503504
this.headers = headers;
504505
this.scMaxBufferedPosts = scMaxBufferedPosts;
505506
this.scMaxEachPostBytes = scMaxEachPostBytes;
507+
this.scStreamUpServerSecs = scStreamUpServerSecs;
506508
this.noSSEHeader = noSSEHeader;
507509
this.xPaddingBytes = xPaddingBytes;
508510
this.mode = mode;
@@ -523,6 +525,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
523525
XrayCommonClass.toHeaders(json.headers),
524526
json.scMaxBufferedPosts,
525527
json.scMaxEachPostBytes,
528+
json.scStreamUpServerSecs,
526529
json.noSSEHeader,
527530
json.xPaddingBytes,
528531
json.mode,
@@ -536,6 +539,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
536539
headers: XrayCommonClass.toV2Headers(this.headers, false),
537540
scMaxBufferedPosts: this.scMaxBufferedPosts,
538541
scMaxEachPostBytes: this.scMaxEachPostBytes,
542+
scStreamUpServerSecs: this.scStreamUpServerSecs,
539543
noSSEHeader: this.noSSEHeader,
540544
xPaddingBytes: this.xPaddingBytes,
541545
mode: this.mode,

web/html/xui/form/stream/stream_xhttp.html

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<a-form-item label="Max Upload Size (Byte)" v-if="inbound.stream.xhttp.mode === 'packet-up'">
3434
<a-input v-model.trim="inbound.stream.xhttp.scMaxEachPostBytes"></a-input>
3535
</a-form-item>
36+
<a-form-item label="Stream-Up Server">
37+
<a-input v-model.trim="inbound.stream.xhttp.scStreamUpServerSecs"></a-input>
38+
</a-form-item>
3639
<a-form-item label="Padding Bytes">
3740
<a-input v-model.trim="inbound.stream.xhttp.xPaddingBytes"></a-input>
3841
</a-form-item>

0 commit comments

Comments
 (0)