github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.13.0 5 // source: transport/internet/config.proto 6 7 package internet 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 serial "v2ray.com/core/common/serial" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type TransportProtocol int32 30 31 const ( 32 TransportProtocol_TCP TransportProtocol = 0 33 TransportProtocol_UDP TransportProtocol = 1 34 TransportProtocol_MKCP TransportProtocol = 2 35 TransportProtocol_WebSocket TransportProtocol = 3 36 TransportProtocol_HTTP TransportProtocol = 4 37 TransportProtocol_DomainSocket TransportProtocol = 5 38 ) 39 40 // Enum value maps for TransportProtocol. 41 var ( 42 TransportProtocol_name = map[int32]string{ 43 0: "TCP", 44 1: "UDP", 45 2: "MKCP", 46 3: "WebSocket", 47 4: "HTTP", 48 5: "DomainSocket", 49 } 50 TransportProtocol_value = map[string]int32{ 51 "TCP": 0, 52 "UDP": 1, 53 "MKCP": 2, 54 "WebSocket": 3, 55 "HTTP": 4, 56 "DomainSocket": 5, 57 } 58 ) 59 60 func (x TransportProtocol) Enum() *TransportProtocol { 61 p := new(TransportProtocol) 62 *p = x 63 return p 64 } 65 66 func (x TransportProtocol) String() string { 67 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 68 } 69 70 func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor { 71 return file_transport_internet_config_proto_enumTypes[0].Descriptor() 72 } 73 74 func (TransportProtocol) Type() protoreflect.EnumType { 75 return &file_transport_internet_config_proto_enumTypes[0] 76 } 77 78 func (x TransportProtocol) Number() protoreflect.EnumNumber { 79 return protoreflect.EnumNumber(x) 80 } 81 82 // Deprecated: Use TransportProtocol.Descriptor instead. 83 func (TransportProtocol) EnumDescriptor() ([]byte, []int) { 84 return file_transport_internet_config_proto_rawDescGZIP(), []int{0} 85 } 86 87 type SocketConfig_TCPFastOpenState int32 88 89 const ( 90 // AsIs is to leave the current TFO state as is, unmodified. 91 SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0 92 // Enable is for enabling TFO explictly. 93 SocketConfig_Enable SocketConfig_TCPFastOpenState = 1 94 // Disable is for disabling TFO explictly. 95 SocketConfig_Disable SocketConfig_TCPFastOpenState = 2 96 ) 97 98 // Enum value maps for SocketConfig_TCPFastOpenState. 99 var ( 100 SocketConfig_TCPFastOpenState_name = map[int32]string{ 101 0: "AsIs", 102 1: "Enable", 103 2: "Disable", 104 } 105 SocketConfig_TCPFastOpenState_value = map[string]int32{ 106 "AsIs": 0, 107 "Enable": 1, 108 "Disable": 2, 109 } 110 ) 111 112 func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState { 113 p := new(SocketConfig_TCPFastOpenState) 114 *p = x 115 return p 116 } 117 118 func (x SocketConfig_TCPFastOpenState) String() string { 119 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 120 } 121 122 func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor { 123 return file_transport_internet_config_proto_enumTypes[1].Descriptor() 124 } 125 126 func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType { 127 return &file_transport_internet_config_proto_enumTypes[1] 128 } 129 130 func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber { 131 return protoreflect.EnumNumber(x) 132 } 133 134 // Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead. 135 func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) { 136 return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 0} 137 } 138 139 type SocketConfig_TProxyMode int32 140 141 const ( 142 // TProxy is off. 143 SocketConfig_Off SocketConfig_TProxyMode = 0 144 // TProxy mode. 145 SocketConfig_TProxy SocketConfig_TProxyMode = 1 146 // Redirect mode. 147 SocketConfig_Redirect SocketConfig_TProxyMode = 2 148 ) 149 150 // Enum value maps for SocketConfig_TProxyMode. 151 var ( 152 SocketConfig_TProxyMode_name = map[int32]string{ 153 0: "Off", 154 1: "TProxy", 155 2: "Redirect", 156 } 157 SocketConfig_TProxyMode_value = map[string]int32{ 158 "Off": 0, 159 "TProxy": 1, 160 "Redirect": 2, 161 } 162 ) 163 164 func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode { 165 p := new(SocketConfig_TProxyMode) 166 *p = x 167 return p 168 } 169 170 func (x SocketConfig_TProxyMode) String() string { 171 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 172 } 173 174 func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor { 175 return file_transport_internet_config_proto_enumTypes[2].Descriptor() 176 } 177 178 func (SocketConfig_TProxyMode) Type() protoreflect.EnumType { 179 return &file_transport_internet_config_proto_enumTypes[2] 180 } 181 182 func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber { 183 return protoreflect.EnumNumber(x) 184 } 185 186 // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead. 187 func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) { 188 return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 1} 189 } 190 191 type TransportConfig struct { 192 state protoimpl.MessageState 193 sizeCache protoimpl.SizeCache 194 unknownFields protoimpl.UnknownFields 195 196 // Type of network that this settings supports. 197 // Deprecated. Use the string form below. 198 Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` 199 // Type of network that this settings supports. 200 ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"` 201 // Specific settings. Must be of the transports. 202 Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` 203 } 204 205 func (x *TransportConfig) Reset() { 206 *x = TransportConfig{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_transport_internet_config_proto_msgTypes[0] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212 } 213 214 func (x *TransportConfig) String() string { 215 return protoimpl.X.MessageStringOf(x) 216 } 217 218 func (*TransportConfig) ProtoMessage() {} 219 220 func (x *TransportConfig) ProtoReflect() protoreflect.Message { 221 mi := &file_transport_internet_config_proto_msgTypes[0] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230 } 231 232 // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead. 233 func (*TransportConfig) Descriptor() ([]byte, []int) { 234 return file_transport_internet_config_proto_rawDescGZIP(), []int{0} 235 } 236 237 func (x *TransportConfig) GetProtocol() TransportProtocol { 238 if x != nil { 239 return x.Protocol 240 } 241 return TransportProtocol_TCP 242 } 243 244 func (x *TransportConfig) GetProtocolName() string { 245 if x != nil { 246 return x.ProtocolName 247 } 248 return "" 249 } 250 251 func (x *TransportConfig) GetSettings() *serial.TypedMessage { 252 if x != nil { 253 return x.Settings 254 } 255 return nil 256 } 257 258 type StreamConfig struct { 259 state protoimpl.MessageState 260 sizeCache protoimpl.SizeCache 261 unknownFields protoimpl.UnknownFields 262 263 // Effective network. Deprecated. Use the string form below. 264 // 265 // Deprecated: Do not use. 266 Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` 267 // Effective network. 268 ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"` 269 TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"` 270 // Type of security. Must be a message name of the settings proto. 271 SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"` 272 // Settings for transport security. For now the only choice is TLS. 273 SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"` 274 SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"` 275 } 276 277 func (x *StreamConfig) Reset() { 278 *x = StreamConfig{} 279 if protoimpl.UnsafeEnabled { 280 mi := &file_transport_internet_config_proto_msgTypes[1] 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 ms.StoreMessageInfo(mi) 283 } 284 } 285 286 func (x *StreamConfig) String() string { 287 return protoimpl.X.MessageStringOf(x) 288 } 289 290 func (*StreamConfig) ProtoMessage() {} 291 292 func (x *StreamConfig) ProtoReflect() protoreflect.Message { 293 mi := &file_transport_internet_config_proto_msgTypes[1] 294 if protoimpl.UnsafeEnabled && x != nil { 295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 296 if ms.LoadMessageInfo() == nil { 297 ms.StoreMessageInfo(mi) 298 } 299 return ms 300 } 301 return mi.MessageOf(x) 302 } 303 304 // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead. 305 func (*StreamConfig) Descriptor() ([]byte, []int) { 306 return file_transport_internet_config_proto_rawDescGZIP(), []int{1} 307 } 308 309 // Deprecated: Do not use. 310 func (x *StreamConfig) GetProtocol() TransportProtocol { 311 if x != nil { 312 return x.Protocol 313 } 314 return TransportProtocol_TCP 315 } 316 317 func (x *StreamConfig) GetProtocolName() string { 318 if x != nil { 319 return x.ProtocolName 320 } 321 return "" 322 } 323 324 func (x *StreamConfig) GetTransportSettings() []*TransportConfig { 325 if x != nil { 326 return x.TransportSettings 327 } 328 return nil 329 } 330 331 func (x *StreamConfig) GetSecurityType() string { 332 if x != nil { 333 return x.SecurityType 334 } 335 return "" 336 } 337 338 func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage { 339 if x != nil { 340 return x.SecuritySettings 341 } 342 return nil 343 } 344 345 func (x *StreamConfig) GetSocketSettings() *SocketConfig { 346 if x != nil { 347 return x.SocketSettings 348 } 349 return nil 350 } 351 352 type ProxyConfig struct { 353 state protoimpl.MessageState 354 sizeCache protoimpl.SizeCache 355 unknownFields protoimpl.UnknownFields 356 357 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 358 } 359 360 func (x *ProxyConfig) Reset() { 361 *x = ProxyConfig{} 362 if protoimpl.UnsafeEnabled { 363 mi := &file_transport_internet_config_proto_msgTypes[2] 364 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 365 ms.StoreMessageInfo(mi) 366 } 367 } 368 369 func (x *ProxyConfig) String() string { 370 return protoimpl.X.MessageStringOf(x) 371 } 372 373 func (*ProxyConfig) ProtoMessage() {} 374 375 func (x *ProxyConfig) ProtoReflect() protoreflect.Message { 376 mi := &file_transport_internet_config_proto_msgTypes[2] 377 if protoimpl.UnsafeEnabled && x != nil { 378 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 379 if ms.LoadMessageInfo() == nil { 380 ms.StoreMessageInfo(mi) 381 } 382 return ms 383 } 384 return mi.MessageOf(x) 385 } 386 387 // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead. 388 func (*ProxyConfig) Descriptor() ([]byte, []int) { 389 return file_transport_internet_config_proto_rawDescGZIP(), []int{2} 390 } 391 392 func (x *ProxyConfig) GetTag() string { 393 if x != nil { 394 return x.Tag 395 } 396 return "" 397 } 398 399 // SocketConfig is options to be applied on network sockets. 400 type SocketConfig struct { 401 state protoimpl.MessageState 402 sizeCache protoimpl.SizeCache 403 unknownFields protoimpl.UnknownFields 404 405 // Mark of the connection. If non-zero, the value will be set to SO_MARK. 406 Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` 407 // TFO is the state of TFO settings. 408 Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"` 409 // TProxy is for enabling TProxy socket option. 410 Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"` 411 // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket 412 // option. This option is for UDP only. 413 ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"` 414 BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"` 415 BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"` 416 } 417 418 func (x *SocketConfig) Reset() { 419 *x = SocketConfig{} 420 if protoimpl.UnsafeEnabled { 421 mi := &file_transport_internet_config_proto_msgTypes[3] 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 ms.StoreMessageInfo(mi) 424 } 425 } 426 427 func (x *SocketConfig) String() string { 428 return protoimpl.X.MessageStringOf(x) 429 } 430 431 func (*SocketConfig) ProtoMessage() {} 432 433 func (x *SocketConfig) ProtoReflect() protoreflect.Message { 434 mi := &file_transport_internet_config_proto_msgTypes[3] 435 if protoimpl.UnsafeEnabled && x != nil { 436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 437 if ms.LoadMessageInfo() == nil { 438 ms.StoreMessageInfo(mi) 439 } 440 return ms 441 } 442 return mi.MessageOf(x) 443 } 444 445 // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead. 446 func (*SocketConfig) Descriptor() ([]byte, []int) { 447 return file_transport_internet_config_proto_rawDescGZIP(), []int{3} 448 } 449 450 func (x *SocketConfig) GetMark() int32 { 451 if x != nil { 452 return x.Mark 453 } 454 return 0 455 } 456 457 func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState { 458 if x != nil { 459 return x.Tfo 460 } 461 return SocketConfig_AsIs 462 } 463 464 func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode { 465 if x != nil { 466 return x.Tproxy 467 } 468 return SocketConfig_Off 469 } 470 471 func (x *SocketConfig) GetReceiveOriginalDestAddress() bool { 472 if x != nil { 473 return x.ReceiveOriginalDestAddress 474 } 475 return false 476 } 477 478 func (x *SocketConfig) GetBindAddress() []byte { 479 if x != nil { 480 return x.BindAddress 481 } 482 return nil 483 } 484 485 func (x *SocketConfig) GetBindPort() uint32 { 486 if x != nil { 487 return x.BindPort 488 } 489 return 0 490 } 491 492 var File_transport_internet_config_proto protoreflect.FileDescriptor 493 494 var file_transport_internet_config_proto_rawDesc = []byte{ 495 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 496 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 497 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 498 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 499 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 500 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 501 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 502 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 503 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 504 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 505 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 506 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 507 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 508 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 509 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x65, 510 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 511 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 512 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 513 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb4, 514 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 515 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 516 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 517 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 518 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 519 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 520 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 521 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 522 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 523 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 524 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 525 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 526 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 527 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 528 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 529 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 530 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x73, 0x65, 531 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 532 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 533 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 534 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 535 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 536 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 537 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 538 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 539 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 540 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 541 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 542 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 543 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0xad, 0x03, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 544 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 545 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74, 546 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 547 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 548 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 549 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 550 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74, 551 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32, 552 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 553 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 554 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 555 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 556 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 557 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 558 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 559 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 560 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 561 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 562 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 563 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x35, 564 0x0a, 0x10, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 565 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 566 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61, 567 0x62, 0x6c, 0x65, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 568 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 569 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 570 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 571 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 572 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 573 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 574 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 575 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 576 0x10, 0x05, 0x42, 0x68, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 577 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 578 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 579 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 580 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x1d, 0x56, 581 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 582 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 583 0x6f, 0x74, 0x6f, 0x33, 584 } 585 586 var ( 587 file_transport_internet_config_proto_rawDescOnce sync.Once 588 file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc 589 ) 590 591 func file_transport_internet_config_proto_rawDescGZIP() []byte { 592 file_transport_internet_config_proto_rawDescOnce.Do(func() { 593 file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData) 594 }) 595 return file_transport_internet_config_proto_rawDescData 596 } 597 598 var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 599 var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 600 var file_transport_internet_config_proto_goTypes = []interface{}{ 601 (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol 602 (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState 603 (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode 604 (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig 605 (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig 606 (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig 607 (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig 608 (*serial.TypedMessage)(nil), // 7: v2ray.core.common.serial.TypedMessage 609 } 610 var file_transport_internet_config_proto_depIdxs = []int32{ 611 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol 612 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> v2ray.core.common.serial.TypedMessage 613 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol 614 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig 615 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> v2ray.core.common.serial.TypedMessage 616 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig 617 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState 618 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode 619 8, // [8:8] is the sub-list for method output_type 620 8, // [8:8] is the sub-list for method input_type 621 8, // [8:8] is the sub-list for extension type_name 622 8, // [8:8] is the sub-list for extension extendee 623 0, // [0:8] is the sub-list for field type_name 624 } 625 626 func init() { file_transport_internet_config_proto_init() } 627 func file_transport_internet_config_proto_init() { 628 if File_transport_internet_config_proto != nil { 629 return 630 } 631 if !protoimpl.UnsafeEnabled { 632 file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 633 switch v := v.(*TransportConfig); i { 634 case 0: 635 return &v.state 636 case 1: 637 return &v.sizeCache 638 case 2: 639 return &v.unknownFields 640 default: 641 return nil 642 } 643 } 644 file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 645 switch v := v.(*StreamConfig); i { 646 case 0: 647 return &v.state 648 case 1: 649 return &v.sizeCache 650 case 2: 651 return &v.unknownFields 652 default: 653 return nil 654 } 655 } 656 file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 657 switch v := v.(*ProxyConfig); i { 658 case 0: 659 return &v.state 660 case 1: 661 return &v.sizeCache 662 case 2: 663 return &v.unknownFields 664 default: 665 return nil 666 } 667 } 668 file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 669 switch v := v.(*SocketConfig); i { 670 case 0: 671 return &v.state 672 case 1: 673 return &v.sizeCache 674 case 2: 675 return &v.unknownFields 676 default: 677 return nil 678 } 679 } 680 } 681 type x struct{} 682 out := protoimpl.TypeBuilder{ 683 File: protoimpl.DescBuilder{ 684 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 685 RawDescriptor: file_transport_internet_config_proto_rawDesc, 686 NumEnums: 3, 687 NumMessages: 4, 688 NumExtensions: 0, 689 NumServices: 0, 690 }, 691 GoTypes: file_transport_internet_config_proto_goTypes, 692 DependencyIndexes: file_transport_internet_config_proto_depIdxs, 693 EnumInfos: file_transport_internet_config_proto_enumTypes, 694 MessageInfos: file_transport_internet_config_proto_msgTypes, 695 }.Build() 696 File_transport_internet_config_proto = out.File 697 file_transport_internet_config_proto_rawDesc = nil 698 file_transport_internet_config_proto_goTypes = nil 699 file_transport_internet_config_proto_depIdxs = nil 700 }