mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
comments
This commit is contained in:
parent
426a58707f
commit
4e80ed05d9
@ -9,6 +9,10 @@ import "v2ray.com/core/common/net/address.proto";
|
|||||||
import "v2ray.com/core/common/net/destination.proto";
|
import "v2ray.com/core/common/net/destination.proto";
|
||||||
|
|
||||||
message Config {
|
message Config {
|
||||||
|
// Nameservers used by this DNS. Only traditional UDP servers are support at the moment.
|
||||||
|
// A special value 'localhost' as a domain address can be set to use DNS on local system.
|
||||||
repeated v2ray.core.common.net.Endpoint NameServers = 1;
|
repeated v2ray.core.common.net.Endpoint NameServers = 1;
|
||||||
|
|
||||||
|
// Static hosts. Domain to IP.
|
||||||
map<string, v2ray.core.common.net.IPOrDomain> Hosts = 2;
|
map<string, v2ray.core.common.net.IPOrDomain> Hosts = 2;
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,13 @@ message RoutingRule {
|
|||||||
|
|
||||||
message Config {
|
message Config {
|
||||||
enum DomainStrategy {
|
enum DomainStrategy {
|
||||||
|
// Use domain as is.
|
||||||
AsIs = 0;
|
AsIs = 0;
|
||||||
|
|
||||||
|
// Always resolve IP for domains.
|
||||||
UseIp = 1;
|
UseIp = 1;
|
||||||
|
|
||||||
|
// Resolve to IP if the domain doesn't match any rules.
|
||||||
IpIfNonMatch = 2;
|
IpIfNonMatch = 2;
|
||||||
}
|
}
|
||||||
DomainStrategy domain_strategy = 1;
|
DomainStrategy domain_strategy = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user