github.com/xraypb/xray-core@v1.6.6/transport/internet/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.18.0 5 // source: transport/internet/config.proto 6 7 package internet 8 9 import ( 10 serial "github.com/xraypb/xray-core/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 DomainStrategy int32 83 84 const ( 85 DomainStrategy_AS_IS DomainStrategy = 0 86 DomainStrategy_USE_IP DomainStrategy = 1 87 DomainStrategy_USE_IP4 DomainStrategy = 2 88 DomainStrategy_USE_IP6 DomainStrategy = 3 89 ) 90 91 // Enum value maps for DomainStrategy. 92 var ( 93 DomainStrategy_name = map[int32]string{ 94 0: "AS_IS", 95 1: "USE_IP", 96 2: "USE_IP4", 97 3: "USE_IP6", 98 } 99 DomainStrategy_value = map[string]int32{ 100 "AS_IS": 0, 101 "USE_IP": 1, 102 "USE_IP4": 2, 103 "USE_IP6": 3, 104 } 105 ) 106 107 func (x DomainStrategy) Enum() *DomainStrategy { 108 p := new(DomainStrategy) 109 *p = x 110 return p 111 } 112 113 func (x DomainStrategy) String() string { 114 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 115 } 116 117 func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor { 118 return file_transport_internet_config_proto_enumTypes[1].Descriptor() 119 } 120 121 func (DomainStrategy) Type() protoreflect.EnumType { 122 return &file_transport_internet_config_proto_enumTypes[1] 123 } 124 125 func (x DomainStrategy) Number() protoreflect.EnumNumber { 126 return protoreflect.EnumNumber(x) 127 } 128 129 // Deprecated: Use DomainStrategy.Descriptor instead. 130 func (DomainStrategy) EnumDescriptor() ([]byte, []int) { 131 return file_transport_internet_config_proto_rawDescGZIP(), []int{1} 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, 0} 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=xray.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=xray.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 int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` 413 // TFO is the state of TFO settings. 414 Tfo int32 `protobuf:"varint,2,opt,name=tfo,proto3" json:"tfo,omitempty"` 415 // TProxy is for enabling TProxy socket option. 416 Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=xray.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 DomainStrategy DomainStrategy `protobuf:"varint,8,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"` 424 DialerProxy string `protobuf:"bytes,9,opt,name=dialer_proxy,json=dialerProxy,proto3" json:"dialer_proxy,omitempty"` 425 TcpKeepAliveInterval int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"` 426 TcpKeepAliveIdle int32 `protobuf:"varint,11,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"` 427 TcpCongestion string `protobuf:"bytes,12,opt,name=tcp_congestion,json=tcpCongestion,proto3" json:"tcp_congestion,omitempty"` 428 } 429 430 func (x *SocketConfig) Reset() { 431 *x = SocketConfig{} 432 if protoimpl.UnsafeEnabled { 433 mi := &file_transport_internet_config_proto_msgTypes[3] 434 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 435 ms.StoreMessageInfo(mi) 436 } 437 } 438 439 func (x *SocketConfig) String() string { 440 return protoimpl.X.MessageStringOf(x) 441 } 442 443 func (*SocketConfig) ProtoMessage() {} 444 445 func (x *SocketConfig) ProtoReflect() protoreflect.Message { 446 mi := &file_transport_internet_config_proto_msgTypes[3] 447 if protoimpl.UnsafeEnabled && x != nil { 448 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 449 if ms.LoadMessageInfo() == nil { 450 ms.StoreMessageInfo(mi) 451 } 452 return ms 453 } 454 return mi.MessageOf(x) 455 } 456 457 // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead. 458 func (*SocketConfig) Descriptor() ([]byte, []int) { 459 return file_transport_internet_config_proto_rawDescGZIP(), []int{3} 460 } 461 462 func (x *SocketConfig) GetMark() int32 { 463 if x != nil { 464 return x.Mark 465 } 466 return 0 467 } 468 469 func (x *SocketConfig) GetTfo() int32 { 470 if x != nil { 471 return x.Tfo 472 } 473 return 0 474 } 475 476 func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode { 477 if x != nil { 478 return x.Tproxy 479 } 480 return SocketConfig_Off 481 } 482 483 func (x *SocketConfig) GetReceiveOriginalDestAddress() bool { 484 if x != nil { 485 return x.ReceiveOriginalDestAddress 486 } 487 return false 488 } 489 490 func (x *SocketConfig) GetBindAddress() []byte { 491 if x != nil { 492 return x.BindAddress 493 } 494 return nil 495 } 496 497 func (x *SocketConfig) GetBindPort() uint32 { 498 if x != nil { 499 return x.BindPort 500 } 501 return 0 502 } 503 504 func (x *SocketConfig) GetAcceptProxyProtocol() bool { 505 if x != nil { 506 return x.AcceptProxyProtocol 507 } 508 return false 509 } 510 511 func (x *SocketConfig) GetDomainStrategy() DomainStrategy { 512 if x != nil { 513 return x.DomainStrategy 514 } 515 return DomainStrategy_AS_IS 516 } 517 518 func (x *SocketConfig) GetDialerProxy() string { 519 if x != nil { 520 return x.DialerProxy 521 } 522 return "" 523 } 524 525 func (x *SocketConfig) GetTcpKeepAliveInterval() int32 { 526 if x != nil { 527 return x.TcpKeepAliveInterval 528 } 529 return 0 530 } 531 532 func (x *SocketConfig) GetTcpKeepAliveIdle() int32 { 533 if x != nil { 534 return x.TcpKeepAliveIdle 535 } 536 return 0 537 } 538 539 func (x *SocketConfig) GetTcpCongestion() string { 540 if x != nil { 541 return x.TcpCongestion 542 } 543 return "" 544 } 545 546 var File_transport_internet_config_proto protoreflect.FileDescriptor 547 548 var file_transport_internet_config_proto_rawDesc = []byte{ 549 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 550 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 551 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 552 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 553 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 554 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x01, 555 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 556 0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 557 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 558 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 559 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 560 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 561 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 562 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 563 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 564 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 565 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 566 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 567 0x22, 0x9c, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 568 0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 569 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 570 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 571 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 572 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 573 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 574 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 575 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 576 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 577 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 578 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 579 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 580 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 581 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 582 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 583 0x12, 0x4d, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 584 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 585 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 586 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 587 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 588 0x4e, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 589 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 590 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 591 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 592 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 593 0x51, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 594 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 595 0x12, 0x30, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 596 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 597 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 598 0x78, 0x79, 0x22, 0xe8, 0x04, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 599 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 600 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02, 601 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x06, 0x74, 0x70, 0x72, 602 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 603 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 604 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 605 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 606 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 607 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 608 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 609 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 610 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 611 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 612 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 613 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 614 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 615 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 616 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 617 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x0f, 0x64, 0x6f, 618 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20, 619 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 620 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 621 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 622 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x0c, 623 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x09, 0x20, 0x01, 624 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 625 0x35, 0x0a, 0x17, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 626 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 627 0x52, 0x14, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 628 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x13, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 629 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x18, 0x0b, 0x20, 630 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 631 0x65, 0x49, 0x64, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x63, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 632 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 633 0x63, 0x70, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2f, 0x0a, 0x0a, 634 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 635 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 636 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 637 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 638 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 639 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 640 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 641 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 642 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x2a, 0x41, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 643 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 644 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 645 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 646 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x42, 0x67, 0x0a, 0x1b, 647 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 648 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x2c, 0x67, 649 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 650 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 651 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x17, 0x58, 0x72, 652 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 653 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 654 } 655 656 var ( 657 file_transport_internet_config_proto_rawDescOnce sync.Once 658 file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc 659 ) 660 661 func file_transport_internet_config_proto_rawDescGZIP() []byte { 662 file_transport_internet_config_proto_rawDescOnce.Do(func() { 663 file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData) 664 }) 665 return file_transport_internet_config_proto_rawDescData 666 } 667 668 var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 669 var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 670 var file_transport_internet_config_proto_goTypes = []interface{}{ 671 (TransportProtocol)(0), // 0: xray.transport.internet.TransportProtocol 672 (DomainStrategy)(0), // 1: xray.transport.internet.DomainStrategy 673 (SocketConfig_TProxyMode)(0), // 2: xray.transport.internet.SocketConfig.TProxyMode 674 (*TransportConfig)(nil), // 3: xray.transport.internet.TransportConfig 675 (*StreamConfig)(nil), // 4: xray.transport.internet.StreamConfig 676 (*ProxyConfig)(nil), // 5: xray.transport.internet.ProxyConfig 677 (*SocketConfig)(nil), // 6: xray.transport.internet.SocketConfig 678 (*serial.TypedMessage)(nil), // 7: xray.common.serial.TypedMessage 679 } 680 var file_transport_internet_config_proto_depIdxs = []int32{ 681 0, // 0: xray.transport.internet.TransportConfig.protocol:type_name -> xray.transport.internet.TransportProtocol 682 7, // 1: xray.transport.internet.TransportConfig.settings:type_name -> xray.common.serial.TypedMessage 683 0, // 2: xray.transport.internet.StreamConfig.protocol:type_name -> xray.transport.internet.TransportProtocol 684 3, // 3: xray.transport.internet.StreamConfig.transport_settings:type_name -> xray.transport.internet.TransportConfig 685 7, // 4: xray.transport.internet.StreamConfig.security_settings:type_name -> xray.common.serial.TypedMessage 686 6, // 5: xray.transport.internet.StreamConfig.socket_settings:type_name -> xray.transport.internet.SocketConfig 687 2, // 6: xray.transport.internet.SocketConfig.tproxy:type_name -> xray.transport.internet.SocketConfig.TProxyMode 688 1, // 7: xray.transport.internet.SocketConfig.domain_strategy:type_name -> xray.transport.internet.DomainStrategy 689 8, // [8:8] is the sub-list for method output_type 690 8, // [8:8] is the sub-list for method input_type 691 8, // [8:8] is the sub-list for extension type_name 692 8, // [8:8] is the sub-list for extension extendee 693 0, // [0:8] is the sub-list for field type_name 694 } 695 696 func init() { file_transport_internet_config_proto_init() } 697 func file_transport_internet_config_proto_init() { 698 if File_transport_internet_config_proto != nil { 699 return 700 } 701 if !protoimpl.UnsafeEnabled { 702 file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 703 switch v := v.(*TransportConfig); i { 704 case 0: 705 return &v.state 706 case 1: 707 return &v.sizeCache 708 case 2: 709 return &v.unknownFields 710 default: 711 return nil 712 } 713 } 714 file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 715 switch v := v.(*StreamConfig); i { 716 case 0: 717 return &v.state 718 case 1: 719 return &v.sizeCache 720 case 2: 721 return &v.unknownFields 722 default: 723 return nil 724 } 725 } 726 file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 727 switch v := v.(*ProxyConfig); i { 728 case 0: 729 return &v.state 730 case 1: 731 return &v.sizeCache 732 case 2: 733 return &v.unknownFields 734 default: 735 return nil 736 } 737 } 738 file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 739 switch v := v.(*SocketConfig); i { 740 case 0: 741 return &v.state 742 case 1: 743 return &v.sizeCache 744 case 2: 745 return &v.unknownFields 746 default: 747 return nil 748 } 749 } 750 } 751 type x struct{} 752 out := protoimpl.TypeBuilder{ 753 File: protoimpl.DescBuilder{ 754 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 755 RawDescriptor: file_transport_internet_config_proto_rawDesc, 756 NumEnums: 3, 757 NumMessages: 4, 758 NumExtensions: 0, 759 NumServices: 0, 760 }, 761 GoTypes: file_transport_internet_config_proto_goTypes, 762 DependencyIndexes: file_transport_internet_config_proto_depIdxs, 763 EnumInfos: file_transport_internet_config_proto_enumTypes, 764 MessageInfos: file_transport_internet_config_proto_msgTypes, 765 }.Build() 766 File_transport_internet_config_proto = out.File 767 file_transport_internet_config_proto_rawDesc = nil 768 file_transport_internet_config_proto_goTypes = nil 769 file_transport_internet_config_proto_depIdxs = nil 770 }