optimize sing-box DNS
This commit is contained in:
@@ -675,8 +675,6 @@ namespace v2rayN.Handler
|
||||
return 0;
|
||||
}
|
||||
//Add the dns of the remote server domain
|
||||
if (Utils.IsDomain(node.address))
|
||||
{
|
||||
if (dns4Sbox.rules is null)
|
||||
{
|
||||
dns4Sbox.rules = new();
|
||||
@@ -690,9 +688,8 @@ namespace v2rayN.Handler
|
||||
dns4Sbox.rules.Add(new()
|
||||
{
|
||||
server = "local_local",
|
||||
domain = new List<string>() { node.address }
|
||||
outbound = "any"
|
||||
});
|
||||
}
|
||||
|
||||
singboxConfig.dns = dns4Sbox;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user