mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-13 16:05:01 +03:00
Add IP-literal DoH presets and expose dns-module in routing inbound tags (#10571)
DomainRemoteDNSAddress gains https://1.1.1.1/dns-query and https://8.8.8.8/dns-query: on networks that transparently rewrite port 53, hostname-based DoH endpoints resolve to the block page and fail, so the existing presets are unusable there while the IP-literal forms work. InboundTags gains dns-module so the routing rule editor can express 'route DNS out direct', a tag xray already supports and v2rayN itself emits in the generated config.
This commit is contained in:
@@ -499,6 +499,9 @@ public class Global
|
||||
"https://doh.dns.sb/dns-query",
|
||||
"https://doh.opendns.com/dns-query",
|
||||
"https://common.dot.dns.yandex.net/dns-query",
|
||||
"https://1.1.1.1/dns-query",
|
||||
"https://8.8.8.8/dns-query",
|
||||
"https://1.1.1.1/dns-query,https://8.8.8.8/dns-query",
|
||||
"8.8.8.8",
|
||||
"1.1.1.1",
|
||||
"185.222.222.222",
|
||||
@@ -578,7 +581,8 @@ public class Global
|
||||
"tun",
|
||||
"socks",
|
||||
"socks2",
|
||||
"socks3"
|
||||
"socks3",
|
||||
"dns-module"
|
||||
];
|
||||
|
||||
public static readonly List<string> RuleProtocols =
|
||||
|
||||
Reference in New Issue
Block a user