mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 20:42:07 +00:00
new - splithttp (scMinPostsIntervalMs)
This commit is contained in:
parent
bae89272b0
commit
4ec104c5ee
2 changed files with 17 additions and 11 deletions
|
@ -523,13 +523,14 @@ class HTTPUpgradeStreamSettings extends XrayCommonClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
class SplitHTTPStreamSettings extends XrayCommonClass {
|
class SplitHTTPStreamSettings extends XrayCommonClass {
|
||||||
constructor(path='/', host='', headers=[] , maxUploadSize= 1000000, maxConcurrentUploads= 10) {
|
constructor(path='/', host='', headers=[] , scMaxConcurrentPosts= 100, scMaxEachPostBytes= 1000000, scMinPostsIntervalMs= 30) {
|
||||||
super();
|
super();
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.host = host;
|
this.host = host;
|
||||||
this.headers = headers;
|
this.headers = headers;
|
||||||
this.maxUploadSize = maxUploadSize;
|
this.scMaxConcurrentPosts = scMaxConcurrentPosts;
|
||||||
this.maxConcurrentUploads = maxConcurrentUploads;
|
this.scMaxEachPostBytes = scMaxEachPostBytes;
|
||||||
|
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
|
||||||
}
|
}
|
||||||
|
|
||||||
addHeader(name, value) {
|
addHeader(name, value) {
|
||||||
|
@ -545,8 +546,9 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
||||||
json.path,
|
json.path,
|
||||||
json.host,
|
json.host,
|
||||||
XrayCommonClass.toHeaders(json.headers),
|
XrayCommonClass.toHeaders(json.headers),
|
||||||
json.maxUploadSize,
|
json.scMaxConcurrentPosts,
|
||||||
json.maxConcurrentUploads,
|
json.scMaxEachPostBytes,
|
||||||
|
json.scMinPostsIntervalMs,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,8 +557,9 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
|
||||||
path: this.path,
|
path: this.path,
|
||||||
host: this.host,
|
host: this.host,
|
||||||
headers: XrayCommonClass.toV2Headers(this.headers, false),
|
headers: XrayCommonClass.toV2Headers(this.headers, false),
|
||||||
maxUploadSize: this.maxUploadSize,
|
scMaxConcurrentPosts: this.scMaxConcurrentPosts,
|
||||||
maxConcurrentUploads: this.maxConcurrentUploads,
|
scMaxEachPostBytes: this.scMaxEachPostBytes,
|
||||||
|
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-input-group>
|
</a-input-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="Max Upload Size (Byte)">
|
|
||||||
<a-input-number v-model="inbound.stream.splithttp.maxUploadSize" :min="0"></a-input-number>
|
|
||||||
</a-form-item>
|
|
||||||
<a-form-item label="Max Concurrent Upload">
|
<a-form-item label="Max Concurrent Upload">
|
||||||
<a-input-number v-model="inbound.stream.splithttp.maxConcurrentUploads" :min="0"></a-input-number>
|
<a-input-number v-model="inbound.stream.splithttp.scMaxConcurrentPosts" :min="0"></a-input-number>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item label="Max Upload Size (Byte)">
|
||||||
|
<a-input-number v-model="inbound.stream.splithttp.scMaxEachPostBytes" :min="0"></a-input-number>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item label="Min Upload Interval Ms">
|
||||||
|
<a-input-number v-model="inbound.stream.splithttp.scMinPostsIntervalMs" :min="0"></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue