Browse Source

fix mistake - xtls

MHSanaei 1 year ago
parent
commit
b056c2dda0
1 changed files with 12 additions and 0 deletions
  1. 12 0
      web/assets/js/model/xray.js

+ 12 - 0
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;
     }