1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
This commit is contained in:
Darien Raymond 2016-10-18 10:31:39 +02:00
parent 426a58707f
commit 4e80ed05d9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 9 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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;