From 4e80ed05d9a0ce5466196271162fb867d9defbf0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 18 Oct 2016 10:31:39 +0200 Subject: [PATCH] comments --- app/dns/config.proto | 4 ++++ app/router/config.proto | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/dns/config.proto b/app/dns/config.proto index 367c13f28..3d9c76396 100644 --- a/app/dns/config.proto +++ b/app/dns/config.proto @@ -9,6 +9,10 @@ import "v2ray.com/core/common/net/address.proto"; import "v2ray.com/core/common/net/destination.proto"; 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; + + // Static hosts. Domain to IP. map Hosts = 2; } diff --git a/app/router/config.proto b/app/router/config.proto index bd590668d..ee1683a8e 100644 --- a/app/router/config.proto +++ b/app/router/config.proto @@ -46,8 +46,13 @@ message RoutingRule { message Config { enum DomainStrategy { + // Use domain as is. AsIs = 0; + + // Always resolve IP for domains. UseIp = 1; + + // Resolve to IP if the domain doesn't match any rules. IpIfNonMatch = 2; } DomainStrategy domain_strategy = 1;