fix BUG:只生成勾选的端口转发配置

This commit is contained in:
2812555492@qq.com 2022-07-03 22:31:32 +08:00
parent bbe6aad56a
commit fde3cb522c

View file

@ -181,7 +181,10 @@ namespace v2rayN.Handler
// 端口转发 // 端口转发
foreach (var item in config.portForwarding) foreach (var item in config.portForwarding)
{ {
v2rayConfig.inbounds.Add(GetPortForwarding(item)); if (item.enable)
{
v2rayConfig.inbounds.Add(GetPortForwarding(item));
}
} }
} }
catch (Exception ex) catch (Exception ex)