From 70b3db074aa6c82182219aa13f048d41632d8ed0 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 19 Feb 2024 21:05:24 +0330 Subject: [PATCH] open sniffing for all protocols Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/xray.js | 4 ---- web/html/xui/form/inbound.html | 2 +- web/html/xui/form/sniffing.html | 2 +- web/html/xui/inbounds.html | 6 +++--- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index d7d1fa0d..80c81da2 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1146,10 +1146,6 @@ class Inbound extends XrayCommonClass { return [Protocols.VMESS, Protocols.VLESS, Protocols.TROJAN, Protocols.SHADOWSOCKS].includes(this.protocol); } - canSniffing() { - return [Protocols.VMESS, Protocols.VLESS, Protocols.TROJAN, Protocols.SHADOWSOCKS].includes(this.protocol); - } - reset() { this.port = RandomUtil.randomIntRange(10000, 60000); this.listen = ''; diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html index 6f3705ff..9453f0d7 100644 --- a/web/html/xui/form/inbound.html +++ b/web/html/xui/form/inbound.html @@ -114,7 +114,7 @@ -