From b056c2dda0b53e54d1001460c00608c49c5a4fc1 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 10 Jan 2024 20:41:43 +0330 Subject: [PATCH] fix mistake - xtls --- web/assets/js/model/xray.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; }