mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 13:13:04 +00:00
Compare commits
7 commits
12f879d39a
...
280c119b9b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
280c119b9b | ||
|
|
f7a1e437e9 | ||
|
|
866609ccb5 | ||
|
|
d6e3718544 | ||
|
|
a03e38fb16 | ||
|
|
84a1eb8445 | ||
|
|
f900ce7f3f |
2 changed files with 7 additions and 3 deletions
|
|
@ -188,10 +188,10 @@ public static class CoreConfigHandler
|
||||||
var newItems = new List<ProfileItem> { node };
|
var newItems = new List<ProfileItem> { node };
|
||||||
if (node.ConfigType.IsGroupType())
|
if (node.ConfigType.IsGroupType())
|
||||||
{
|
{
|
||||||
var groupChildList = await GroupProfileManager.GetAllChildProfileItems(node);
|
var (groupChildList, _) = await GroupProfileManager.GetChildProfileItems(node);
|
||||||
foreach (var childItem in groupChildList)
|
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
|
node.SetProtocolExtra(node.GetProtocolExtra() with
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -348,6 +348,10 @@ public partial class CoreConfigSingboxService
|
||||||
private void GenMinimizedDns()
|
private void GenMinimizedDns()
|
||||||
{
|
{
|
||||||
GenDnsServers();
|
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 ??= new();
|
||||||
_coreConfig.dns.rules ??= [];
|
_coreConfig.dns.rules ??= [];
|
||||||
_coreConfig.dns.rules.Clear();
|
_coreConfig.dns.rules.Clear();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue