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
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue