diff --git a/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs b/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs index 158d657d..92622741 100644 --- a/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/V2rayConfigHandler.cs @@ -157,12 +157,6 @@ namespace v2rayN.Handler Inbounds inbound2 = GetInbound(config.inbound[0], Global.InboundHttp, 1, false); v2rayConfig.inbounds.Add(inbound2); - // 端口转发 - foreach (var item in config.portForwarding) - { - v2rayConfig.inbounds.Add(GetPortForwarding(item)); - } - if (config.inbound[0].allowLANConn) { Inbounds inbound3 = GetInbound(config.inbound[0], Global.InboundSocks2, 2, true); @@ -183,6 +177,12 @@ namespace v2rayN.Handler inbound4.settings.accounts = new List { new AccountsItem() { user = config.inbound[0].user, pass = config.inbound[0].pass } }; } } + + // 端口转发 + foreach (var item in config.portForwarding) + { + v2rayConfig.inbounds.Add(GetPortForwarding(item)); + } } catch (Exception ex) { diff --git a/v2rayN/v2rayN/v2rayN.csproj b/v2rayN/v2rayN/v2rayN.csproj index 10d89345..59458176 100644 --- a/v2rayN/v2rayN/v2rayN.csproj +++ b/v2rayN/v2rayN/v2rayN.csproj @@ -15,7 +15,7 @@ false - 发布\ + C:\Users\28125\Desktop\ true Disk false @@ -25,7 +25,7 @@ false false true - 2 + 3 1.0.0.%2a false true @@ -62,7 +62,7 @@ v2rayN_TemporaryKey.pfx - false + true false