diff --git a/Netch/Servers/VMess/Utils/V2rayConfigUtils.cs b/Netch/Servers/VMess/Utils/V2rayConfigUtils.cs index 2adfd884..93e278a1 100644 --- a/Netch/Servers/VMess/Utils/V2rayConfigUtils.cs +++ b/Netch/Servers/VMess/Utils/V2rayConfigUtils.cs @@ -224,15 +224,15 @@ namespace Netch.Servers.VMess.Utils } } - v2rayConfig.outbounds = new List - { - outbound, + v2rayConfig.outbounds = new List {outbound}; + if (mode.Type <= 2) + return; + v2rayConfig.outbounds.Add( new Outbounds { tag = "direct", protocol = "freedom" - } - }; + }); } catch {