2016-10-02 17:43:58 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v2ray.core.transport.internet;
|
2016-12-22 18:24:28 -05:00
|
|
|
option csharp_namespace = "V2Ray.Core.Transport.Internet";
|
2016-10-02 17:43:58 -04:00
|
|
|
option go_package = "internet";
|
|
|
|
option java_package = "com.v2ray.core.transport.internet";
|
2017-02-03 17:15:10 -05:00
|
|
|
option java_multiple_files = true;
|
2016-10-02 17:43:58 -04:00
|
|
|
|
2016-12-15 05:51:09 -05:00
|
|
|
import "v2ray.com/core/common/serial/typed_message.proto";
|
2016-10-02 17:43:58 -04:00
|
|
|
|
2017-01-12 06:54:34 -05:00
|
|
|
enum TransportProtocol {
|
|
|
|
TCP = 0;
|
|
|
|
UDP = 1;
|
|
|
|
MKCP = 2;
|
|
|
|
WebSocket = 3;
|
2018-03-01 07:16:52 -05:00
|
|
|
HTTP = 4;
|
2017-01-12 06:54:34 -05:00
|
|
|
}
|
|
|
|
|
2017-01-16 08:18:33 -05:00
|
|
|
message TransportConfig {
|
2016-10-17 18:09:49 -04:00
|
|
|
// Type of network that this settings supports.
|
2017-01-12 06:54:34 -05:00
|
|
|
TransportProtocol protocol = 1;
|
2016-10-17 18:09:49 -04:00
|
|
|
|
2018-01-04 05:24:17 -05:00
|
|
|
// Specific settings. Must be of the transports.
|
2016-12-15 05:51:09 -05:00
|
|
|
v2ray.core.common.serial.TypedMessage settings = 2;
|
2016-10-02 17:43:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message StreamConfig {
|
2016-10-17 18:09:49 -04:00
|
|
|
// Effective network.
|
2017-01-12 06:54:34 -05:00
|
|
|
TransportProtocol protocol = 1;
|
2016-10-17 18:09:49 -04:00
|
|
|
|
2017-01-16 08:18:33 -05:00
|
|
|
repeated TransportConfig transport_settings = 2;
|
2016-10-17 18:09:49 -04:00
|
|
|
|
|
|
|
// Type of security. Must be a message name of the settings proto.
|
2016-10-16 08:22:21 -04:00
|
|
|
string security_type = 3;
|
2016-10-17 18:09:49 -04:00
|
|
|
|
2018-01-04 05:24:17 -05:00
|
|
|
// Settings for transport security. For now the only choice is TLS.
|
2016-12-15 05:51:09 -05:00
|
|
|
repeated v2ray.core.common.serial.TypedMessage security_settings = 4;
|
2016-11-10 17:41:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProxyConfig {
|
|
|
|
string tag = 1;
|
2017-01-12 06:54:34 -05:00
|
|
|
}
|