Compare commits

..

5 commits

Author SHA1 Message Date
DHR60
e14a85c144
Merge f7409053cd into b5800f7dfc 2026-02-15 09:01:35 +00:00
DHR60
f7409053cd Node test with sub chain 2026-02-15 17:01:09 +08:00
DHR60
a03e38fb16 Fix 2026-02-15 16:48:44 +08:00
DHR60
84a1eb8445 Optimize ProfileItem acquisition speed 2026-02-15 16:48:44 +08:00
DHR60
f900ce7f3f Fix 2026-02-15 16:48:44 +08:00
2 changed files with 7 additions and 3 deletions

View file

@ -192,10 +192,10 @@ public static class CoreConfigHandler
var newItems = new List<ProfileItem> { node };
if (node.ConfigType.IsGroupType())
{
var groupChildList = await GroupProfileManager.GetAllChildProfileItems(node);
foreach (var childItem in groupChildList)
var (groupChildList, _) = await GroupProfileManager.GetChildProfileItems(node);
foreach (var childItem in groupChildList.Where(childItem => !context.AllProxiesMap.ContainsKey(childItem.IndexId)))
{
context.AllProxiesMap[childItem.IndexId] = childItem;
await FillNodeContext(context, childItem, false);
}
node.SetProtocolExtra(node.GetProtocolExtra() with
{

View file

@ -348,6 +348,10 @@ public partial class CoreConfigSingboxService
private void GenMinimizedDns()
{
GenDnsServers();
foreach (var server in _coreConfig.dns!.servers.Where(s => !string.IsNullOrEmpty(s.detour)).ToList())
{
_coreConfig.dns.servers.Remove(server);
}
_coreConfig.dns ??= new();
_coreConfig.dns.rules ??= [];
_coreConfig.dns.rules.Clear();