mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 05:32:24 +00:00
fix dns leak (#7110)
This commit is contained in:
parent
519e588124
commit
cf59137481
3 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,7 @@ public class DnsServer4Ray
|
|||
{
|
||||
public string? address { get; set; }
|
||||
public List<string>? domains { get; set; }
|
||||
public bool? skipFallback { get; set; }
|
||||
}
|
||||
|
||||
public class Routing4Ray
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
},
|
||||
{
|
||||
"address": "223.5.5.5",
|
||||
"skipFallback": true,
|
||||
"domains": [
|
||||
"geosite:cn"
|
||||
],
|
||||
|
|
|
@ -1185,6 +1185,7 @@ public class CoreConfigV2rayService
|
|||
var dnsServer = new DnsServer4Ray()
|
||||
{
|
||||
address = string.IsNullOrEmpty(dNSItem?.DomainDNSAddress) ? Global.DomainDNSAddress.FirstOrDefault() : dNSItem?.DomainDNSAddress,
|
||||
skipFallback = true,
|
||||
domains = [node.Address]
|
||||
};
|
||||
servers.AsArray().Add(JsonUtils.SerializeToNode(dnsServer));
|
||||
|
|
Loading…
Reference in a new issue