From 9c7d709d7a1035f8f465e10788ce9c1c233cb82c Mon Sep 17 00:00:00 2001 From: "2812555492@qq.com" <19960203.a> Date: Sun, 3 Jul 2022 17:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E7=AB=AF=E5=8F=A3=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E4=BB=A3=E7=A0=81=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/v2rayN/Handler/V2rayConfigHandler.cs | 12 ++++++------ v2rayN/v2rayN/v2rayN.csproj | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) 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