mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 21:24:41 +03:00
new - splithttp (noSSEHeader)
This commit is contained in:
@@ -523,7 +523,15 @@ class HTTPUpgradeStreamSettings extends XrayCommonClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SplitHTTPStreamSettings extends XrayCommonClass {
|
class SplitHTTPStreamSettings extends XrayCommonClass {
|
||||||
constructor(path='/', host='', headers=[] , scMaxConcurrentPosts= 100, scMaxEachPostBytes= 1000000, scMinPostsIntervalMs= 30) {
|
constructor(
|
||||||
|
path = '/',
|
||||||
|
host = '',
|
||||||
|
headers = [],
|
||||||
|
scMaxConcurrentPosts = 100,
|
||||||
|
scMaxEachPostBytes = 1000000,
|
||||||
|
scMinPostsIntervalMs = 30,
|
||||||
|
noSSEHeader = false,
|
||||||
|
) {
|
||||||
super();
|
super();
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.host = host;
|
this.host = host;
|
||||||
@@ -531,6 +539,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|||||||
this.scMaxConcurrentPosts = scMaxConcurrentPosts;
|
this.scMaxConcurrentPosts = scMaxConcurrentPosts;
|
||||||
this.scMaxEachPostBytes = scMaxEachPostBytes;
|
this.scMaxEachPostBytes = scMaxEachPostBytes;
|
||||||
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
|
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
|
||||||
|
this.noSSEHeader = noSSEHeader;
|
||||||
}
|
}
|
||||||
|
|
||||||
addHeader(name, value) {
|
addHeader(name, value) {
|
||||||
@@ -541,7 +550,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|||||||
this.headers.splice(index, 1);
|
this.headers.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json={}) {
|
static fromJson(json = {}) {
|
||||||
return new SplitHTTPStreamSettings(
|
return new SplitHTTPStreamSettings(
|
||||||
json.path,
|
json.path,
|
||||||
json.host,
|
json.host,
|
||||||
@@ -549,6 +558,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|||||||
json.scMaxConcurrentPosts,
|
json.scMaxConcurrentPosts,
|
||||||
json.scMaxEachPostBytes,
|
json.scMaxEachPostBytes,
|
||||||
json.scMinPostsIntervalMs,
|
json.scMinPostsIntervalMs,
|
||||||
|
json.noSSEHeader,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -560,6 +570,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
|||||||
scMaxConcurrentPosts: this.scMaxConcurrentPosts,
|
scMaxConcurrentPosts: this.scMaxConcurrentPosts,
|
||||||
scMaxEachPostBytes: this.scMaxEachPostBytes,
|
scMaxEachPostBytes: this.scMaxEachPostBytes,
|
||||||
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
|
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
|
||||||
|
noSSEHeader: this.noSSEHeader,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,11 @@
|
|||||||
<a-form-item label="Max Upload Size (Byte)">
|
<a-form-item label="Max Upload Size (Byte)">
|
||||||
<a-input-number v-model="inbound.stream.splithttp.scMaxEachPostBytes" :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>
|
||||||
<a-form-item label="Min Upload Interval Ms">
|
<a-form-item label="Min Upload Interval (Ms)">
|
||||||
<a-input-number v-model="inbound.stream.splithttp.scMinPostsIntervalMs" :min="0"></a-input-number>
|
<a-input-number v-model="inbound.stream.splithttp.scMinPostsIntervalMs" :min="0"></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<a-form-item label="No SSE Header">
|
||||||
|
<a-switch v-model="inbound.stream.splithttp.noSSEHeader"></a-switch>
|
||||||
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
Reference in New Issue
Block a user