mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 13:13:04 +00:00
Fix test
This commit is contained in:
parent
0075939a73
commit
936354d8d3
1 changed files with 4 additions and 0 deletions
|
|
@ -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