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-02 11:23:10 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-02 11:23:10 +0300
commitf2ebe128cc8d842dfed4e7a7b054fa19a414ea27 (patch)
treeb098ddd8df24717af8368b9f12dbe726fd508932
parentf0165c1ad801c594b64b9d2178cf8b9cfe053a49 (diff)
freedom redirect
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-rw-r--r--web/assets/js/model/outbound.js4
-rw-r--r--web/html/xui/form/outbound.html7
2 files changed, 10 insertions, 1 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 5c019a3c..1ff271f2 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -864,12 +864,14 @@ Outbound.FreedomSettings = class extends CommonClass {
constructor(
domainStrategy = '',
timeout = '',
+ redirect = '',
fragment = {},
noise = {}
) {
super();
this.domainStrategy = domainStrategy;
this.timeout = timeout;
+ this.redirect = redirect;
this.fragment = fragment;
this.noise = noise;
}
@@ -878,6 +880,7 @@ Outbound.FreedomSettings = class extends CommonClass {
return new Outbound.FreedomSettings(
json.domainStrategy,
json.timeout,
+ json.redirect,
json.fragment ? Outbound.FreedomSettings.Fragment.fromJson(json.fragment) : undefined,
json.noise ? Outbound.FreedomSettings.Noise.fromJson(json.noise) : undefined,
);
@@ -887,6 +890,7 @@ Outbound.FreedomSettings = class extends CommonClass {
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,
noise: Object.keys(this.noise).length === 0 ? undefined : this.noise,
};
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index 1f79671f..7dbd0313 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -25,8 +25,13 @@
<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>
<a-form-item label='Fragment'>
- <a-switch :checked="Object.keys(outbound.settings.fragment).length >0" @change="checked => outbound.settings.fragment = checked ? new Outbound.FreedomSettings.Fragment() : {}"></a-switch>
+ <a-switch :checked="Object.keys(outbound.settings.fragment).length >0"
+ @change="checked => outbound.settings.fragment = checked ? new Outbound.FreedomSettings.Fragment() : {}">
+ </a-switch>
</a-form-item>
<template v-if="Object.keys(outbound.settings.fragment).length >0">
<a-form-item label='Packets'>