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