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
path: root/web
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-09-17 11:43:12 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-17 12:37:24 +0300
commit59a84e844c668d8d95b820be78d4cc841df6d7dd (patch)
treec536901f608e66518e1ea1467fcb322abec5c25b /web
parent6b0c9a5fad333a491ddac65126783481c638672f (diff)
HTTP - Allow Transparent
Diffstat (limited to 'web')
-rw-r--r--web/assets/js/model/xray.js9
-rw-r--r--web/html/xui/form/protocol/http.html3
2 files changed, 11 insertions, 1 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index a46b4834..93c3ac1e 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -2601,9 +2601,14 @@ Inbound.SocksSettings.SocksAccount = class extends XrayCommonClass {
};
Inbound.HttpSettings = class extends Inbound.Settings {
- constructor(protocol, accounts = [new Inbound.HttpSettings.HttpAccount()]) {
+ constructor(
+ protocol,
+ accounts = [new Inbound.HttpSettings.HttpAccount()],
+ allowTransparent = false,
+ ) {
super(protocol);
this.accounts = accounts;
+ this.allowTransparent = allowTransparent;
}
addAccount(account) {
@@ -2618,12 +2623,14 @@ Inbound.HttpSettings = class extends Inbound.Settings {
return new Inbound.HttpSettings(
Protocols.HTTP,
json.accounts.map(account => Inbound.HttpSettings.HttpAccount.fromJson(account)),
+ json.allowTransparent,
);
}
toJson() {
return {
accounts: Inbound.HttpSettings.toJsonArray(this.accounts),
+ allowTransparent: this.allowTransparent,
};
}
};
diff --git a/web/html/xui/form/protocol/http.html b/web/html/xui/form/protocol/http.html
index 3206139e..b4c55313 100644
--- a/web/html/xui/form/protocol/http.html
+++ b/web/html/xui/form/protocol/http.html
@@ -19,5 +19,8 @@
</template>
</a-input>
</a-input-group>
+ <a-form-item label="Allow Transparent">
+ <a-switch v-model="inbound.settings.allowTransparent" />
+ </a-form-item>
</a-form>
{{end}}