Darien Raymond 9 years ago
parent
commit
4e80ed05d9
2 changed files with 9 additions and 0 deletions
  1. 4 0
      app/dns/config.proto
  2. 5 0
      app/router/config.proto

+ 4 - 0
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<string, v2ray.core.common.net.IPOrDomain> Hosts = 2;
 }

+ 5 - 0
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;