|
|
@ -355,6 +355,54 @@ func (x *ConnectionReuse) GetEnable() bool {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Maximum Transmission Unit, in bytes.
|
|
|
|
|
|
|
|
type EncryptionSeed struct {
|
|
|
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *EncryptionSeed) Reset() {
|
|
|
|
|
|
|
|
*x = EncryptionSeed{}
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7]
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *EncryptionSeed) String() string {
|
|
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*EncryptionSeed) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *EncryptionSeed) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7]
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ms
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use EncryptionSeed.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
|
|
func (*EncryptionSeed) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *EncryptionSeed) GetSeed() string {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.Seed
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
type Config struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
@ -368,12 +416,13 @@ type Config struct {
|
|
|
|
WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer,proto3" json:"write_buffer,omitempty"`
|
|
|
|
WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer,proto3" json:"write_buffer,omitempty"`
|
|
|
|
ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer,proto3" json:"read_buffer,omitempty"`
|
|
|
|
ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer,proto3" json:"read_buffer,omitempty"`
|
|
|
|
HeaderConfig *serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig,proto3" json:"header_config,omitempty"`
|
|
|
|
HeaderConfig *serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig,proto3" json:"header_config,omitempty"`
|
|
|
|
|
|
|
|
Seed *EncryptionSeed `protobuf:"bytes,10,opt,name=seed,proto3" json:"seed,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Config) Reset() {
|
|
|
|
func (x *Config) Reset() {
|
|
|
|
*x = Config{}
|
|
|
|
*x = Config{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7]
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -386,7 +435,7 @@ func (x *Config) String() string {
|
|
|
|
func (*Config) ProtoMessage() {}
|
|
|
|
func (*Config) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7]
|
|
|
|
mi := &file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[8]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@ -399,7 +448,7 @@ func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Config.ProtoReflect.Descriptor instead.
|
|
|
|
// Deprecated: Use Config.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
|
|
return file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescGZIP(), []int{7}
|
|
|
|
return file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Config) GetMtu() *MTU {
|
|
|
|
func (x *Config) GetMtu() *MTU {
|
|
|
@ -458,6 +507,13 @@ func (x *Config) GetHeaderConfig() *serial.TypedMessage {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Config) GetSeed() *EncryptionSeed {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.Seed
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var File_v2ray_com_core_transport_internet_kcp_config_proto protoreflect.FileDescriptor
|
|
|
|
var File_v2ray_com_core_transport_internet_kcp_config_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_rawDesc = []byte{
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_rawDesc = []byte{
|
|
|
@ -485,50 +541,57 @@ var file_v2ray_com_core_transport_internet_kcp_config_proto_rawDesc = []byte{
|
|
|
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x43, 0x6f,
|
|
|
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x43, 0x6f,
|
|
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a,
|
|
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a,
|
|
|
|
0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65,
|
|
|
|
0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65,
|
|
|
|
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xd0, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
|
|
|
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
|
|
|
|
0x12, 0x38, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
|
|
|
|
0x69, 0x6f, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18,
|
|
|
|
0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x97, 0x05, 0x0a, 0x06,
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
|
|
|
|
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x01, 0x20,
|
|
|
|
0x70, 0x2e, 0x4d, 0x54, 0x55, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x38, 0x0a, 0x03, 0x74, 0x74,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
|
|
|
|
0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
|
|
|
|
0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
|
|
|
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
|
|
|
|
0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x4d, 0x54, 0x55, 0x52, 0x03, 0x6d, 0x74, 0x75,
|
|
|
|
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x54, 0x54, 0x49, 0x52,
|
|
|
|
0x12, 0x38, 0x0a, 0x03, 0x74, 0x74, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
|
|
|
|
0x03, 0x74, 0x74, 0x69, 0x12, 0x5a, 0x0a, 0x0f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63,
|
|
|
|
|
|
|
|
0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e,
|
|
|
|
|
|
|
|
0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
|
|
0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
|
|
|
|
0x70, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
|
|
|
|
0x70, 0x2e, 0x54, 0x54, 0x49, 0x52, 0x03, 0x74, 0x74, 0x69, 0x12, 0x5a, 0x0a, 0x0f, 0x75, 0x70,
|
|
|
|
0x52, 0x0e, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
|
|
|
|
0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20,
|
|
|
|
0x12, 0x60, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
|
|
|
|
0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32,
|
|
|
|
0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
|
|
|
0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61,
|
|
|
|
0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e,
|
|
|
|
0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61,
|
|
|
|
0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
|
|
|
|
0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x60, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69,
|
|
|
|
0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69,
|
|
|
|
0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69,
|
|
|
|
0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
|
|
|
|
0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x66, 0x66,
|
|
|
|
0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61,
|
|
|
|
0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
|
|
|
|
0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b,
|
|
|
|
0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
|
|
|
|
0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x67,
|
|
|
|
0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x57, 0x72, 0x69,
|
|
|
|
0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x6f,
|
|
|
|
0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0b, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42,
|
|
|
|
0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0c, 0x77, 0x72, 0x69, 0x74,
|
|
|
|
0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x62, 0x75,
|
|
|
|
0x65, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e,
|
|
|
|
0x66, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72,
|
|
|
|
0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
|
|
|
|
|
|
|
|
0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b,
|
|
|
|
|
|
|
|
0x63, 0x70, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0b,
|
|
|
|
|
|
|
|
0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x72,
|
|
|
|
|
|
|
|
0x65, 0x61, 0x64, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
|
|
|
|
0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
|
|
|
|
|
|
|
|
0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
|
|
|
|
|
|
|
|
0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52,
|
|
|
|
|
|
|
|
0x0a, 0x72, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x0d, 0x68,
|
|
|
|
|
|
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01,
|
|
|
|
|
|
|
|
0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
|
|
|
|
|
|
|
|
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79,
|
|
|
|
|
|
|
|
0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x68, 0x65, 0x61, 0x64,
|
|
|
|
|
|
|
|
0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64,
|
|
|
|
|
|
|
|
0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
|
|
|
|
|
|
|
|
0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
|
|
|
|
|
|
|
|
0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79,
|
|
|
|
|
|
|
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x4a,
|
|
|
|
|
|
|
|
0x04, 0x08, 0x09, 0x10, 0x0a, 0x42, 0x52, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
|
|
|
|
0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
|
|
|
|
0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
|
|
|
|
0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x52,
|
|
|
|
0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x50, 0x01,
|
|
|
|
0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x42,
|
|
|
|
0x5a, 0x03, 0x6b, 0x63, 0x70, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
|
|
|
|
0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f,
|
|
|
|
0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74,
|
|
|
|
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76,
|
|
|
|
0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x4b, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
|
0x33,
|
|
|
|
0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73,
|
|
|
|
|
|
|
|
0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
|
|
|
|
|
|
|
|
0x69, 0x67, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x42, 0x52, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e,
|
|
|
|
|
|
|
|
0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
|
|
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
|
|
|
|
|
|
|
|
0x70, 0x50, 0x01, 0x5a, 0x03, 0x6b, 0x63, 0x70, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79,
|
|
|
|
|
|
|
|
0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
|
|
|
|
|
|
|
|
0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x4b, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72,
|
|
|
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
@ -543,7 +606,7 @@ func file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescGZIP() []byt
|
|
|
|
return file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescData
|
|
|
|
return file_v2ray_com_core_transport_internet_kcp_config_proto_rawDescData
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_goTypes = []interface{}{
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_goTypes = []interface{}{
|
|
|
|
(*MTU)(nil), // 0: v2ray.core.transport.internet.kcp.MTU
|
|
|
|
(*MTU)(nil), // 0: v2ray.core.transport.internet.kcp.MTU
|
|
|
|
(*TTI)(nil), // 1: v2ray.core.transport.internet.kcp.TTI
|
|
|
|
(*TTI)(nil), // 1: v2ray.core.transport.internet.kcp.TTI
|
|
|
@ -552,8 +615,9 @@ var file_v2ray_com_core_transport_internet_kcp_config_proto_goTypes = []interfac
|
|
|
|
(*WriteBuffer)(nil), // 4: v2ray.core.transport.internet.kcp.WriteBuffer
|
|
|
|
(*WriteBuffer)(nil), // 4: v2ray.core.transport.internet.kcp.WriteBuffer
|
|
|
|
(*ReadBuffer)(nil), // 5: v2ray.core.transport.internet.kcp.ReadBuffer
|
|
|
|
(*ReadBuffer)(nil), // 5: v2ray.core.transport.internet.kcp.ReadBuffer
|
|
|
|
(*ConnectionReuse)(nil), // 6: v2ray.core.transport.internet.kcp.ConnectionReuse
|
|
|
|
(*ConnectionReuse)(nil), // 6: v2ray.core.transport.internet.kcp.ConnectionReuse
|
|
|
|
(*Config)(nil), // 7: v2ray.core.transport.internet.kcp.Config
|
|
|
|
(*EncryptionSeed)(nil), // 7: v2ray.core.transport.internet.kcp.EncryptionSeed
|
|
|
|
(*serial.TypedMessage)(nil), // 8: v2ray.core.common.serial.TypedMessage
|
|
|
|
(*Config)(nil), // 8: v2ray.core.transport.internet.kcp.Config
|
|
|
|
|
|
|
|
(*serial.TypedMessage)(nil), // 9: v2ray.core.common.serial.TypedMessage
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_depIdxs = []int32{
|
|
|
|
var file_v2ray_com_core_transport_internet_kcp_config_proto_depIdxs = []int32{
|
|
|
|
0, // 0: v2ray.core.transport.internet.kcp.Config.mtu:type_name -> v2ray.core.transport.internet.kcp.MTU
|
|
|
|
0, // 0: v2ray.core.transport.internet.kcp.Config.mtu:type_name -> v2ray.core.transport.internet.kcp.MTU
|
|
|
@ -562,12 +626,13 @@ var file_v2ray_com_core_transport_internet_kcp_config_proto_depIdxs = []int32{
|
|
|
|
3, // 3: v2ray.core.transport.internet.kcp.Config.downlink_capacity:type_name -> v2ray.core.transport.internet.kcp.DownlinkCapacity
|
|
|
|
3, // 3: v2ray.core.transport.internet.kcp.Config.downlink_capacity:type_name -> v2ray.core.transport.internet.kcp.DownlinkCapacity
|
|
|
|
4, // 4: v2ray.core.transport.internet.kcp.Config.write_buffer:type_name -> v2ray.core.transport.internet.kcp.WriteBuffer
|
|
|
|
4, // 4: v2ray.core.transport.internet.kcp.Config.write_buffer:type_name -> v2ray.core.transport.internet.kcp.WriteBuffer
|
|
|
|
5, // 5: v2ray.core.transport.internet.kcp.Config.read_buffer:type_name -> v2ray.core.transport.internet.kcp.ReadBuffer
|
|
|
|
5, // 5: v2ray.core.transport.internet.kcp.Config.read_buffer:type_name -> v2ray.core.transport.internet.kcp.ReadBuffer
|
|
|
|
8, // 6: v2ray.core.transport.internet.kcp.Config.header_config:type_name -> v2ray.core.common.serial.TypedMessage
|
|
|
|
9, // 6: v2ray.core.transport.internet.kcp.Config.header_config:type_name -> v2ray.core.common.serial.TypedMessage
|
|
|
|
7, // [7:7] is the sub-list for method output_type
|
|
|
|
7, // 7: v2ray.core.transport.internet.kcp.Config.seed:type_name -> v2ray.core.transport.internet.kcp.EncryptionSeed
|
|
|
|
7, // [7:7] is the sub-list for method input_type
|
|
|
|
8, // [8:8] is the sub-list for method output_type
|
|
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
|
|
8, // [8:8] is the sub-list for method input_type
|
|
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
|
|
0, // [0:7] is the sub-list for field type_name
|
|
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
|
|
|
|
|
|
0, // [0:8] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { file_v2ray_com_core_transport_internet_kcp_config_proto_init() }
|
|
|
|
func init() { file_v2ray_com_core_transport_internet_kcp_config_proto_init() }
|
|
|
@ -661,6 +726,18 @@ func file_v2ray_com_core_transport_internet_kcp_config_proto_init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
|
|
|
switch v := v.(*EncryptionSeed); i {
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
return &v.state
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
file_v2ray_com_core_transport_internet_kcp_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Config); i {
|
|
|
|
switch v := v.(*Config); i {
|
|
|
|
case 0:
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
return &v.state
|
|
|
@ -679,7 +756,7 @@ func file_v2ray_com_core_transport_internet_kcp_config_proto_init() {
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_v2ray_com_core_transport_internet_kcp_config_proto_rawDesc,
|
|
|
|
RawDescriptor: file_v2ray_com_core_transport_internet_kcp_config_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 8,
|
|
|
|
NumMessages: 9,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|