Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-09-24 13:00:37 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-24 13:00:37 +0300
commit16b47959565570e9f121080af157f7c0b95bfa25 (patch)
tree540296beca3a6613bed4569c563ede744cba9b78
parente5835c299c2c975354e1e9ab7b6fa1497183d963 (diff)
removed - timeout
-rw-r--r--web/assets/js/model/outbound.js4
-rw-r--r--web/assets/js/model/xray.js6
-rw-r--r--web/html/xui/form/outbound.html3
-rw-r--r--web/html/xui/form/protocol/dokodemo.html3
4 files changed, 1 insertions, 15 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 5772d34f..a66cc215 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -851,14 +851,12 @@ Outbound.Settings = class extends CommonClass {
Outbound.FreedomSettings = class extends CommonClass {
constructor(
domainStrategy = '',
- timeout = 10,
redirect = '',
fragment = {},
noises = []
) {
super();
this.domainStrategy = domainStrategy;
- this.timeout = timeout;
this.redirect = redirect;
this.fragment = fragment;
this.noises = noises;
@@ -875,7 +873,6 @@ Outbound.FreedomSettings = class extends CommonClass {
static fromJson(json = {}) {
return new Outbound.FreedomSettings(
json.domainStrategy,
- json.timeout,
json.redirect,
json.fragment ? Outbound.FreedomSettings.Fragment.fromJson(json.fragment) : undefined,
json.noises ? json.noises.map(noise => Outbound.FreedomSettings.Noise.fromJson(noise)) : [new Outbound.FreedomSettings.Noise()],
@@ -885,7 +882,6 @@ Outbound.FreedomSettings = class extends CommonClass {
toJson() {
return {
domainStrategy: ObjectUtil.isEmpty(this.domainStrategy) ? undefined : this.domainStrategy,
- timeout: this.timeout,
redirect: this.redirect,
fragment: Object.keys(this.fragment).length === 0 ? undefined : this.fragment,
noises: Outbound.FreedomSettings.Noise.toJsonArray(this.noises),
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 74211952..078b8711 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -2513,15 +2513,13 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
address,
port,
network = 'tcp,udp',
- followRedirect = false,
- timeout = 30
+ followRedirect = false
) {
super(protocol);
this.address = address;
this.port = port;
this.network = network;
this.followRedirect = followRedirect;
- this.timeout = timeout;
}
static fromJson(json = {}) {
@@ -2531,7 +2529,6 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
json.port,
json.network,
json.followRedirect,
- json.timeout,
);
}
@@ -2541,7 +2538,6 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
port: this.port,
network: this.network,
followRedirect: this.followRedirect,
- timeout: this.timeout,
};
}
};
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index bbad5c85..604108fe 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -22,9 +22,6 @@
<a-select-option v-for="s in OutboundDomainStrategies" :value="s">[[ s ]]</a-select-option>
</a-select>
</a-form-item>
- <a-form-item label='Timeout'>
- <a-input-number v-model.number="outbound.settings.timeout" min="0" ></a-input-number>
- </a-form-item>
<a-form-item label='Redirect'>
<a-input v-model="outbound.settings.redirect"></a-input>
</a-form-item>
diff --git a/web/html/xui/form/protocol/dokodemo.html b/web/html/xui/form/protocol/dokodemo.html
index e7e1d950..70ffe7e0 100644
--- a/web/html/xui/form/protocol/dokodemo.html
+++ b/web/html/xui/form/protocol/dokodemo.html
@@ -16,8 +16,5 @@
<a-form-item label='Follow Redirect'>
<a-switch v-model="inbound.settings.followRedirect"></a-switch>
</a-form-item>
- <a-form-item label='Timeout'>
- <a-input-number v-model.number="inbound.settings.timeout" :min="0"></a-input-number>
- </a-form-item>
</a-form>
{{end}}