diff --git a/Netch/Servers/V2ray/V2rayConfigUtils.cs b/Netch/Servers/V2ray/V2rayConfigUtils.cs index 75b6a798..76e4786b 100644 --- a/Netch/Servers/V2ray/V2rayConfigUtils.cs +++ b/Netch/Servers/V2ray/V2rayConfigUtils.cs @@ -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