From 8e223faa714b4ff4a77dd2dc11af281d29816433 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Sun, 25 Oct 2020 21:35:07 +0800 Subject: [PATCH] fix: v2ray will proxy multicast address causing loop --- Netch/Servers/VMess/Utils/V2rayConfigUtils.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 {