VMess : Automatically choose zero for secure TLS connection

This commit is contained in:
Hellojack
2022-06-08 18:01:49 +08:00
committed by GitHub
parent a1c0a7fcbd
commit 46a5f2e190

View File

@@ -111,6 +111,10 @@ public static class V2rayConfigUtils
case VMessServer vmess:
{
outbound.protocol = "vmess";
if (vmess.EncryptMethod == "auto" && vmess.TLSSecureType != "none" && !Global.Settings.V2RayConfig.AllowInsecure)
{
vmess.EncryptMethod = "zero";
}
outbound.settings.vnext = new[]
{
new VnextItem