Compare commits

..

6 commits

Author SHA1 Message Date
DHR60
f7a1e437e9 Fix 2026-02-15 17:01:52 +08:00
DHR60
866609ccb5 Remove EnableExInbound 2026-02-15 17:01:52 +08:00
DHR60
d6e3718544 Tun protect 2026-02-15 17:01:52 +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

@ -188,10 +188,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();