1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
v2fly/transport/internet/config.proto

41 lines
927 B
Protocol Buffer
Raw Normal View History

2016-10-02 23:43:58 +02:00
syntax = "proto3";
package v2ray.core.transport.internet;
2016-12-23 00:24:28 +01:00
option csharp_namespace = "V2Ray.Core.Transport.Internet";
2016-10-02 23:43:58 +02:00
option go_package = "internet";
option java_package = "com.v2ray.core.transport.internet";
2017-02-03 23:15:10 +01:00
option java_multiple_files = true;
2016-10-02 23:43:58 +02:00
2016-12-15 11:51:09 +01:00
import "v2ray.com/core/common/serial/typed_message.proto";
2016-10-02 23:43:58 +02:00
enum TransportProtocol {
TCP = 0;
UDP = 1;
MKCP = 2;
WebSocket = 3;
}
message TransportConfig {
2016-10-18 00:09:49 +02:00
// Type of network that this settings supports.
TransportProtocol protocol = 1;
2016-10-18 00:09:49 +02:00
// Specific settings.
2016-12-15 11:51:09 +01:00
v2ray.core.common.serial.TypedMessage settings = 2;
2016-10-02 23:43:58 +02:00
}
message StreamConfig {
2016-10-18 00:09:49 +02:00
// Effective network.
TransportProtocol protocol = 1;
2016-10-18 00:09:49 +02:00
repeated TransportConfig transport_settings = 2;
2016-10-18 00:09:49 +02:00
// Type of security. Must be a message name of the settings proto.
2016-10-16 14:22:21 +02:00
string security_type = 3;
2016-10-18 00:09:49 +02:00
2016-12-15 11:51:09 +01:00
repeated v2ray.core.common.serial.TypedMessage security_settings = 4;
2016-11-10 23:41:28 +01:00
}
message ProxyConfig {
string tag = 1;
}