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;
|
result.Success = false;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
var childProfiles = await AppManager.Instance.ProfileItems(subId);
|
||||||
List<string> indexIdList = [];
|
List<string> indexIdList = [];
|
||||||
|
|
||||||
foreach (var regionFilter in PolicyGroupRegionFilters)
|
foreach (var regionFilter in PolicyGroupRegionFilters)
|
||||||
|
|
@ -1283,8 +1284,14 @@ public static class ConfigHandler
|
||||||
};
|
};
|
||||||
profile.SetProtocolExtra(extraItem);
|
profile.SetProtocolExtra(extraItem);
|
||||||
|
|
||||||
var childProfile = await GroupProfileManager.GetChildProfileItemsByProtocolExtra(extraItem);
|
var matchedChildProfiles = childProfiles?.Where(p =>
|
||||||
if (childProfile.Count == 0)
|
p != null &&
|
||||||
|
p.IsValid() &&
|
||||||
|
!p.ConfigType.IsComplexType() &&
|
||||||
|
(extraItem.Filter.IsNullOrEmpty() || Regex.IsMatch(p.Remarks, extraItem.Filter))
|
||||||
|
)
|
||||||
|
.ToList() ?? [];
|
||||||
|
if (matchedChildProfiles.Count == 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue