Darien Raymond 9 years ago
parent
commit
751a105324

+ 1 - 0
transport/config.proto

@@ -7,6 +7,7 @@ option java_outer_classname = "ConfigProto";
 
 import "v2ray.com/core/transport/internet/config.proto";
 
+// Global transport settings. This affects all type of connections that go through V2Ray.
 message Config {
   repeated v2ray.core.transport.internet.NetworkSettings network_settings = 1;
 }

+ 6 - 0
transport/internet/tls/config.proto

@@ -6,11 +6,17 @@ option java_package = "com.v2ray.core.transport.internet.tls";
 option java_outer_classname = "ConfigProto";
 
 message Certificate {
+  // TLS certificate in x509 format.
   bytes Certificate = 1;
+
+  // TLS key in x509 format.
   bytes Key = 2;
 }
 
 message Config {
+  // Whether or not to allow self-signed certificates.
   bool allow_insecure = 1;
+
+  // List of certificates to be served on server.
   repeated Certificate certificate = 2;
 }

+ 3 - 0
transport/internet/ws/config.proto

@@ -10,6 +10,9 @@ message ConnectionReuse {
 }
 
 message Config {
+  // Whether or not to reuse WebSocket connections.
   ConnectionReuse connection_reuse = 1;
+
+  // URL path to the WebSocket service. Empty value means root(/).
   string path = 2;
 }