mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 21:23:04 +00:00
Fix
This commit is contained in:
parent
023f9f1a7e
commit
58e3824d67
1 changed files with 9 additions and 2 deletions
|
|
@ -1256,6 +1256,7 @@ public static class ConfigHandler
|
|||
result.Success = false;
|
||||
return result;
|
||||
}
|
||||
var childProfiles = await AppManager.Instance.ProfileItems(subId);
|
||||
List<string> indexIdList = [];
|
||||
|
||||
foreach (var regionFilter in PolicyGroupRegionFilters)
|
||||
|
|
@ -1283,8 +1284,14 @@ public static class ConfigHandler
|
|||
};
|
||||
profile.SetProtocolExtra(extraItem);
|
||||
|
||||
var childProfile = await GroupProfileManager.GetChildProfileItemsByProtocolExtra(extraItem);
|
||||
if (childProfile.Count == 0)
|
||||
var matchedChildProfiles = childProfiles?.Where(p =>
|
||||
p != null &&
|
||||
p.IsValid() &&
|
||||
!p.ConfigType.IsComplexType() &&
|
||||
(extraItem.Filter.IsNullOrEmpty() || Regex.IsMatch(p.Remarks, extraItem.Filter))
|
||||
)
|
||||
.ToList() ?? [];
|
||||
if (matchedChildProfiles.Count == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue