mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 14:26:20 +00:00
fix BUG:只生成勾选的端口转发配置
This commit is contained in:
parent
bbe6aad56a
commit
fde3cb522c
1 changed files with 4 additions and 1 deletions
|
@ -180,10 +180,13 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
// 端口转发
|
// 端口转发
|
||||||
foreach (var item in config.portForwarding)
|
foreach (var item in config.portForwarding)
|
||||||
|
{
|
||||||
|
if (item.enable)
|
||||||
{
|
{
|
||||||
v2rayConfig.inbounds.Add(GetPortForwarding(item));
|
v2rayConfig.inbounds.Add(GetPortForwarding(item));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Utils.SaveLog(ex.Message, ex);
|
Utils.SaveLog(ex.Message, ex);
|
||||||
|
|
Loading…
Reference in a new issue