整理端口转发代码顺序

This commit is contained in:
2812555492@qq.com 2022-07-03 17:43:40 +08:00
parent 9284381798
commit 9c7d709d7a
2 changed files with 9 additions and 9 deletions

View file

@ -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<AccountsItem> { 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)
{

View file

@ -15,7 +15,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<PublishUrl>发布\</PublishUrl>
<PublishUrl>C:\Users\28125\Desktop\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
@ -25,7 +25,7 @@
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
@ -62,7 +62,7 @@
<ManifestKeyFile>v2rayN_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>false</GenerateManifests>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>