mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 13:13:04 +00:00
Compare commits
2 commits
44c9c7c8be
...
90860a28c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90860a28c6 | ||
|
|
936354d8d3 |
1 changed files with 4 additions and 0 deletions
|
|
@ -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