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-01-10 20:11:43 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-01-10 20:11:43 +0300
commitb056c2dda0b53e54d1001460c00608c49c5a4fc1 (patch)
tree3ddea4d6b9d8a5a4f3883dd7fc6489941e06e007 /web
parent97e6420018cd470d284c32e5ca47fe6f4fb2227a (diff)
fix mistake - xtls
Diffstat (limited to 'web')
-rw-r--r--web/assets/js/model/xray.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 3492db6f..b2c8a2e5 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -1001,6 +1001,18 @@ class Inbound extends XrayCommonClass {
}
}
+ get xtls() {
+ return this.stream.security === 'xtls';
+ }
+
+ set xtls(isXtls) {
+ if (isXtls) {
+ this.stream.security = 'xtls';
+ } else {
+ this.stream.security = 'none';
+ }
+ }
+
get network() {
return this.stream.network;
}