From fde3cb522cc0871ea2f1df85af1ed688644b635f Mon Sep 17 00:00:00 2001 From: "2812555492@qq.com" <19960203.a> Date: Sun, 3 Jul 2022 22:31:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20BUG=EF=BC=9A=E5=8F=AA=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E7=9A=84=E7=AB=AF=E5=8F=A3=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/v2rayN/Handler/V2rayConfigHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs b/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs index 92622741..433c5810 100644 --- a/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs @@ -181,7 +181,10 @@ namespace v2rayN.Handler // 端口转发 foreach (var item in config.portForwarding) { - v2rayConfig.inbounds.Add(GetPortForwarding(item)); + if (item.enable) + { + v2rayConfig.inbounds.Add(GetPortForwarding(item)); + } } } catch (Exception ex)