From 751a105324acd4d00e38a998539560193a7fcecd Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 18 Oct 2016 15:31:39 +0200 Subject: [PATCH] comments --- transport/config.proto | 1 + transport/internet/tls/config.proto | 6 ++++++ transport/internet/ws/config.proto | 3 +++ 3 files changed, 10 insertions(+) diff --git a/transport/config.proto b/transport/config.proto index b4467c01..5ddd3a0f 100644 --- a/transport/config.proto +++ b/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; } \ No newline at end of file diff --git a/transport/internet/tls/config.proto b/transport/internet/tls/config.proto index 18052fc2..73b7886f 100644 --- a/transport/internet/tls/config.proto +++ b/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; } \ No newline at end of file diff --git a/transport/internet/ws/config.proto b/transport/internet/ws/config.proto index 2078f974..a1c8bacd 100644 --- a/transport/internet/ws/config.proto +++ b/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; } \ No newline at end of file