mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 13:13:04 +00:00
Compare commits
4 commits
9b784ab9c7
...
f7409053cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7409053cd | ||
|
|
a03e38fb16 | ||
|
|
84a1eb8445 | ||
|
|
f900ce7f3f |
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue