VLESS flow check

pull/3613/head^2
2dust 2023-04-05 21:07:47 +08:00
parent 8ad80bb75d
commit e47caf8c4f
2 changed files with 10 additions and 0 deletions

View File

@ -795,6 +795,11 @@ namespace v2rayN.Handler
profileItem.path = profileItem.path.TrimEx();
profileItem.streamSecurity = profileItem.streamSecurity.TrimEx();
if (!Global.flows.Contains(profileItem.flow))
{
return -1;
}
AddServerCommon(ref config, profileItem, toFile);
return 0;

View File

@ -1465,6 +1465,11 @@ namespace v2rayN.Handler
{
continue;
}
if (item.configType == EConfigType.VLESS
&& !Global.flows.Contains(item.flow))
{
continue;
}
outbound(item, ref v2rayConfigCopy);
v2rayConfigCopy.outbounds[0].tag = Global.agentTag + inbound.port.ToString();