From ea67b9760d538cbbcdd858c6a73aab74d878ff12 Mon Sep 17 00:00:00 2001 From: Shahin <115543613+shahin-io@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:23:40 +0000 Subject: [PATCH] Minor fix in outbound form (#1810) * Update outbound.html * Update outbound.js * Update outbound.html * Update outbound.html --- web/assets/js/model/outbound.js | 2 +- web/html/xui/form/outbound.html | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index dc02d91bf6..6a52563dc8 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -418,7 +418,7 @@ class Outbound extends CommonClass { } canEnableTls() { - if (![Protocols.VMess, Protocols.VLESS, Protocols.Trojan].includes(this.protocol)) return false; + if (![Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(this.protocol)) return false; return ["tcp", "ws", "http", "quic", "grpc"].includes(this.stream.network); } diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 3f11907df3..fb6a7af782 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -213,17 +213,23 @@ - - @@ -381,7 +387,7 @@