From c277fd29fd01b94a15ae5a5b40ac4016f5391799 Mon Sep 17 00:00:00 2001 From: Shahin <115543613+shahin-io@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:25:52 +0000 Subject: [PATCH] minor fix in outbound (#946) * Update outbound.html * Update outbound.js * Update outbound.html * Update outbound.html * Update outbound.html --- web/assets/js/model/outbound.js | 2 +- web/html/xui/form/outbound.html | 29 +++++++++++++++++++---------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 5420ef5e..6683225c 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 00bdf247..e7edfc32 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -195,15 +195,24 @@ + + + + + + [[ method_name ]] + + + + + + + + @@ -365,7 +374,7 @@