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)