github.com/EagleQL/Xray-core@v1.4.3/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.14.0
     5  // source: transport/internet/config.proto
     6  
     7  package internet
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	serial "github.com/xtls/xray-core/common/serial"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    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 DomainStrategy int32
    88  
    89  const (
    90  	DomainStrategy_AS_IS   DomainStrategy = 0
    91  	DomainStrategy_USE_IP  DomainStrategy = 1
    92  	DomainStrategy_USE_IP4 DomainStrategy = 2
    93  	DomainStrategy_USE_IP6 DomainStrategy = 3
    94  )
    95  
    96  // Enum value maps for DomainStrategy.
    97  var (
    98  	DomainStrategy_name = map[int32]string{
    99  		0: "AS_IS",
   100  		1: "USE_IP",
   101  		2: "USE_IP4",
   102  		3: "USE_IP6",
   103  	}
   104  	DomainStrategy_value = map[string]int32{
   105  		"AS_IS":   0,
   106  		"USE_IP":  1,
   107  		"USE_IP4": 2,
   108  		"USE_IP6": 3,
   109  	}
   110  )
   111  
   112  func (x DomainStrategy) Enum() *DomainStrategy {
   113  	p := new(DomainStrategy)
   114  	*p = x
   115  	return p
   116  }
   117  
   118  func (x DomainStrategy) String() string {
   119  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   120  }
   121  
   122  func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
   123  	return file_transport_internet_config_proto_enumTypes[1].Descriptor()
   124  }
   125  
   126  func (DomainStrategy) Type() protoreflect.EnumType {
   127  	return &file_transport_internet_config_proto_enumTypes[1]
   128  }
   129  
   130  func (x DomainStrategy) Number() protoreflect.EnumNumber {
   131  	return protoreflect.EnumNumber(x)
   132  }
   133  
   134  // Deprecated: Use DomainStrategy.Descriptor instead.
   135  func (DomainStrategy) EnumDescriptor() ([]byte, []int) {
   136  	return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
   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, 0}
   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  	//
   199  	// Deprecated: Do not use.
   200  	Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.transport.internet.TransportProtocol" json:"protocol,omitempty"`
   201  	// Type of network that this settings supports.
   202  	ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
   203  	// Specific settings. Must be of the transports.
   204  	Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
   205  }
   206  
   207  func (x *TransportConfig) Reset() {
   208  	*x = TransportConfig{}
   209  	if protoimpl.UnsafeEnabled {
   210  		mi := &file_transport_internet_config_proto_msgTypes[0]
   211  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   212  		ms.StoreMessageInfo(mi)
   213  	}
   214  }
   215  
   216  func (x *TransportConfig) String() string {
   217  	return protoimpl.X.MessageStringOf(x)
   218  }
   219  
   220  func (*TransportConfig) ProtoMessage() {}
   221  
   222  func (x *TransportConfig) ProtoReflect() protoreflect.Message {
   223  	mi := &file_transport_internet_config_proto_msgTypes[0]
   224  	if protoimpl.UnsafeEnabled && x != nil {
   225  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   226  		if ms.LoadMessageInfo() == nil {
   227  			ms.StoreMessageInfo(mi)
   228  		}
   229  		return ms
   230  	}
   231  	return mi.MessageOf(x)
   232  }
   233  
   234  // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
   235  func (*TransportConfig) Descriptor() ([]byte, []int) {
   236  	return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
   237  }
   238  
   239  // Deprecated: Do not use.
   240  func (x *TransportConfig) GetProtocol() TransportProtocol {
   241  	if x != nil {
   242  		return x.Protocol
   243  	}
   244  	return TransportProtocol_TCP
   245  }
   246  
   247  func (x *TransportConfig) GetProtocolName() string {
   248  	if x != nil {
   249  		return x.ProtocolName
   250  	}
   251  	return ""
   252  }
   253  
   254  func (x *TransportConfig) GetSettings() *serial.TypedMessage {
   255  	if x != nil {
   256  		return x.Settings
   257  	}
   258  	return nil
   259  }
   260  
   261  type StreamConfig struct {
   262  	state         protoimpl.MessageState
   263  	sizeCache     protoimpl.SizeCache
   264  	unknownFields protoimpl.UnknownFields
   265  
   266  	// Effective network. Deprecated. Use the string form below.
   267  	//
   268  	// Deprecated: Do not use.
   269  	Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.transport.internet.TransportProtocol" json:"protocol,omitempty"`
   270  	// Effective network.
   271  	ProtocolName      string             `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
   272  	TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
   273  	// Type of security. Must be a message name of the settings proto.
   274  	SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
   275  	// Settings for transport security. For now the only choice is TLS.
   276  	SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
   277  	SocketSettings   *SocketConfig          `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
   278  }
   279  
   280  func (x *StreamConfig) Reset() {
   281  	*x = StreamConfig{}
   282  	if protoimpl.UnsafeEnabled {
   283  		mi := &file_transport_internet_config_proto_msgTypes[1]
   284  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   285  		ms.StoreMessageInfo(mi)
   286  	}
   287  }
   288  
   289  func (x *StreamConfig) String() string {
   290  	return protoimpl.X.MessageStringOf(x)
   291  }
   292  
   293  func (*StreamConfig) ProtoMessage() {}
   294  
   295  func (x *StreamConfig) ProtoReflect() protoreflect.Message {
   296  	mi := &file_transport_internet_config_proto_msgTypes[1]
   297  	if protoimpl.UnsafeEnabled && x != nil {
   298  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   299  		if ms.LoadMessageInfo() == nil {
   300  			ms.StoreMessageInfo(mi)
   301  		}
   302  		return ms
   303  	}
   304  	return mi.MessageOf(x)
   305  }
   306  
   307  // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
   308  func (*StreamConfig) Descriptor() ([]byte, []int) {
   309  	return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
   310  }
   311  
   312  // Deprecated: Do not use.
   313  func (x *StreamConfig) GetProtocol() TransportProtocol {
   314  	if x != nil {
   315  		return x.Protocol
   316  	}
   317  	return TransportProtocol_TCP
   318  }
   319  
   320  func (x *StreamConfig) GetProtocolName() string {
   321  	if x != nil {
   322  		return x.ProtocolName
   323  	}
   324  	return ""
   325  }
   326  
   327  func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
   328  	if x != nil {
   329  		return x.TransportSettings
   330  	}
   331  	return nil
   332  }
   333  
   334  func (x *StreamConfig) GetSecurityType() string {
   335  	if x != nil {
   336  		return x.SecurityType
   337  	}
   338  	return ""
   339  }
   340  
   341  func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
   342  	if x != nil {
   343  		return x.SecuritySettings
   344  	}
   345  	return nil
   346  }
   347  
   348  func (x *StreamConfig) GetSocketSettings() *SocketConfig {
   349  	if x != nil {
   350  		return x.SocketSettings
   351  	}
   352  	return nil
   353  }
   354  
   355  type ProxyConfig struct {
   356  	state         protoimpl.MessageState
   357  	sizeCache     protoimpl.SizeCache
   358  	unknownFields protoimpl.UnknownFields
   359  
   360  	Tag                 string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
   361  	TransportLayerProxy bool   `protobuf:"varint,2,opt,name=transportLayerProxy,proto3" json:"transportLayerProxy,omitempty"`
   362  }
   363  
   364  func (x *ProxyConfig) Reset() {
   365  	*x = ProxyConfig{}
   366  	if protoimpl.UnsafeEnabled {
   367  		mi := &file_transport_internet_config_proto_msgTypes[2]
   368  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   369  		ms.StoreMessageInfo(mi)
   370  	}
   371  }
   372  
   373  func (x *ProxyConfig) String() string {
   374  	return protoimpl.X.MessageStringOf(x)
   375  }
   376  
   377  func (*ProxyConfig) ProtoMessage() {}
   378  
   379  func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
   380  	mi := &file_transport_internet_config_proto_msgTypes[2]
   381  	if protoimpl.UnsafeEnabled && x != nil {
   382  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   383  		if ms.LoadMessageInfo() == nil {
   384  			ms.StoreMessageInfo(mi)
   385  		}
   386  		return ms
   387  	}
   388  	return mi.MessageOf(x)
   389  }
   390  
   391  // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
   392  func (*ProxyConfig) Descriptor() ([]byte, []int) {
   393  	return file_transport_internet_config_proto_rawDescGZIP(), []int{2}
   394  }
   395  
   396  func (x *ProxyConfig) GetTag() string {
   397  	if x != nil {
   398  		return x.Tag
   399  	}
   400  	return ""
   401  }
   402  
   403  func (x *ProxyConfig) GetTransportLayerProxy() bool {
   404  	if x != nil {
   405  		return x.TransportLayerProxy
   406  	}
   407  	return false
   408  }
   409  
   410  // SocketConfig is options to be applied on network sockets.
   411  type SocketConfig struct {
   412  	state         protoimpl.MessageState
   413  	sizeCache     protoimpl.SizeCache
   414  	unknownFields protoimpl.UnknownFields
   415  
   416  	// Mark of the connection. If non-zero, the value will be set to SO_MARK.
   417  	Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
   418  	// TFO is the state of TFO settings.
   419  	Tfo int32 `protobuf:"varint,2,opt,name=tfo,proto3" json:"tfo,omitempty"`
   420  	// TProxy is for enabling TProxy socket option.
   421  	Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=xray.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
   422  	// ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
   423  	// option. This option is for UDP only.
   424  	ReceiveOriginalDestAddress bool           `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
   425  	BindAddress                []byte         `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
   426  	BindPort                   uint32         `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
   427  	AcceptProxyProtocol        bool           `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
   428  	DomainStrategy             DomainStrategy `protobuf:"varint,8,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"`
   429  	DialerProxy                string         `protobuf:"bytes,9,opt,name=dialer_proxy,json=dialerProxy,proto3" json:"dialer_proxy,omitempty"`
   430  }
   431  
   432  func (x *SocketConfig) Reset() {
   433  	*x = SocketConfig{}
   434  	if protoimpl.UnsafeEnabled {
   435  		mi := &file_transport_internet_config_proto_msgTypes[3]
   436  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   437  		ms.StoreMessageInfo(mi)
   438  	}
   439  }
   440  
   441  func (x *SocketConfig) String() string {
   442  	return protoimpl.X.MessageStringOf(x)
   443  }
   444  
   445  func (*SocketConfig) ProtoMessage() {}
   446  
   447  func (x *SocketConfig) ProtoReflect() protoreflect.Message {
   448  	mi := &file_transport_internet_config_proto_msgTypes[3]
   449  	if protoimpl.UnsafeEnabled && x != nil {
   450  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   451  		if ms.LoadMessageInfo() == nil {
   452  			ms.StoreMessageInfo(mi)
   453  		}
   454  		return ms
   455  	}
   456  	return mi.MessageOf(x)
   457  }
   458  
   459  // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
   460  func (*SocketConfig) Descriptor() ([]byte, []int) {
   461  	return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
   462  }
   463  
   464  func (x *SocketConfig) GetMark() int32 {
   465  	if x != nil {
   466  		return x.Mark
   467  	}
   468  	return 0
   469  }
   470  
   471  func (x *SocketConfig) GetTfo() int32 {
   472  	if x != nil {
   473  		return x.Tfo
   474  	}
   475  	return 0
   476  }
   477  
   478  func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
   479  	if x != nil {
   480  		return x.Tproxy
   481  	}
   482  	return SocketConfig_Off
   483  }
   484  
   485  func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
   486  	if x != nil {
   487  		return x.ReceiveOriginalDestAddress
   488  	}
   489  	return false
   490  }
   491  
   492  func (x *SocketConfig) GetBindAddress() []byte {
   493  	if x != nil {
   494  		return x.BindAddress
   495  	}
   496  	return nil
   497  }
   498  
   499  func (x *SocketConfig) GetBindPort() uint32 {
   500  	if x != nil {
   501  		return x.BindPort
   502  	}
   503  	return 0
   504  }
   505  
   506  func (x *SocketConfig) GetAcceptProxyProtocol() bool {
   507  	if x != nil {
   508  		return x.AcceptProxyProtocol
   509  	}
   510  	return false
   511  }
   512  
   513  func (x *SocketConfig) GetDomainStrategy() DomainStrategy {
   514  	if x != nil {
   515  		return x.DomainStrategy
   516  	}
   517  	return DomainStrategy_AS_IS
   518  }
   519  
   520  func (x *SocketConfig) GetDialerProxy() string {
   521  	if x != nil {
   522  		return x.DialerProxy
   523  	}
   524  	return ""
   525  }
   526  
   527  var File_transport_internet_config_proto protoreflect.FileDescriptor
   528  
   529  var file_transport_internet_config_proto_rawDesc = []byte{
   530  	0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   531  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   532  	0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
   533  	0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
   534  	0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
   535  	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x01,
   536  	0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   537  	0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20,
   538  	0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
   539  	0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72,
   540  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42,
   541  	0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a,
   542  	0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
   543  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61,
   544  	0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02,
   545  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
   546  	0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d,
   547  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
   548  	0x22, 0x9c, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   549  	0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20,
   550  	0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
   551  	0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72,
   552  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42,
   553  	0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a,
   554  	0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05,
   555  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61,
   556  	0x6d, 0x65, 0x12, 0x57, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f,
   557  	0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28,
   558  	0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
   559  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
   560  	0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   561  	0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73,
   562  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
   563  	0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65,
   564  	0x12, 0x4d, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74,
   565  	0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72,
   566  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
   567  	0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73,
   568  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
   569  	0x4e, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
   570  	0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
   571  	0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   572  	0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
   573  	0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22,
   574  	0x51, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10,
   575  	0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
   576  	0x12, 0x30, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79,
   577  	0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74,
   578  	0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f,
   579  	0x78, 0x79, 0x22, 0xdb, 0x03, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e,
   580  	0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
   581  	0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02,
   582  	0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x06, 0x74, 0x70, 0x72,
   583  	0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79,
   584  	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
   585  	0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   586  	0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72,
   587  	0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f,
   588  	0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64,
   589  	0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65,
   590  	0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41,
   591  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61,
   592  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69,
   593  	0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e,
   594  	0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69,
   595  	0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74,
   596  	0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
   597  	0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f,
   598  	0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x0f, 0x64, 0x6f,
   599  	0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20,
   600  	0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
   601  	0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f,
   602  	0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f,
   603  	0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x0c,
   604  	0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x09, 0x20, 0x01,
   605  	0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22,
   606  	0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a,
   607  	0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79,
   608  	0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02,
   609  	0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f,
   610  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07,
   611  	0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10,
   612  	0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03,
   613  	0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f,
   614  	0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x2a, 0x41, 0x0a, 0x0e,
   615  	0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09,
   616  	0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45,
   617  	0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34,
   618  	0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x42,
   619  	0x67, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
   620  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01,
   621  	0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
   622  	0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e,
   623  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02,
   624  	0x17, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
   625  	0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   626  }
   627  
   628  var (
   629  	file_transport_internet_config_proto_rawDescOnce sync.Once
   630  	file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
   631  )
   632  
   633  func file_transport_internet_config_proto_rawDescGZIP() []byte {
   634  	file_transport_internet_config_proto_rawDescOnce.Do(func() {
   635  		file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
   636  	})
   637  	return file_transport_internet_config_proto_rawDescData
   638  }
   639  
   640  var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
   641  var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   642  var file_transport_internet_config_proto_goTypes = []interface{}{
   643  	(TransportProtocol)(0),       // 0: xray.transport.internet.TransportProtocol
   644  	(DomainStrategy)(0),          // 1: xray.transport.internet.DomainStrategy
   645  	(SocketConfig_TProxyMode)(0), // 2: xray.transport.internet.SocketConfig.TProxyMode
   646  	(*TransportConfig)(nil),      // 3: xray.transport.internet.TransportConfig
   647  	(*StreamConfig)(nil),         // 4: xray.transport.internet.StreamConfig
   648  	(*ProxyConfig)(nil),          // 5: xray.transport.internet.ProxyConfig
   649  	(*SocketConfig)(nil),         // 6: xray.transport.internet.SocketConfig
   650  	(*serial.TypedMessage)(nil),  // 7: xray.common.serial.TypedMessage
   651  }
   652  var file_transport_internet_config_proto_depIdxs = []int32{
   653  	0, // 0: xray.transport.internet.TransportConfig.protocol:type_name -> xray.transport.internet.TransportProtocol
   654  	7, // 1: xray.transport.internet.TransportConfig.settings:type_name -> xray.common.serial.TypedMessage
   655  	0, // 2: xray.transport.internet.StreamConfig.protocol:type_name -> xray.transport.internet.TransportProtocol
   656  	3, // 3: xray.transport.internet.StreamConfig.transport_settings:type_name -> xray.transport.internet.TransportConfig
   657  	7, // 4: xray.transport.internet.StreamConfig.security_settings:type_name -> xray.common.serial.TypedMessage
   658  	6, // 5: xray.transport.internet.StreamConfig.socket_settings:type_name -> xray.transport.internet.SocketConfig
   659  	2, // 6: xray.transport.internet.SocketConfig.tproxy:type_name -> xray.transport.internet.SocketConfig.TProxyMode
   660  	1, // 7: xray.transport.internet.SocketConfig.domain_strategy:type_name -> xray.transport.internet.DomainStrategy
   661  	8, // [8:8] is the sub-list for method output_type
   662  	8, // [8:8] is the sub-list for method input_type
   663  	8, // [8:8] is the sub-list for extension type_name
   664  	8, // [8:8] is the sub-list for extension extendee
   665  	0, // [0:8] is the sub-list for field type_name
   666  }
   667  
   668  func init() { file_transport_internet_config_proto_init() }
   669  func file_transport_internet_config_proto_init() {
   670  	if File_transport_internet_config_proto != nil {
   671  		return
   672  	}
   673  	if !protoimpl.UnsafeEnabled {
   674  		file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   675  			switch v := v.(*TransportConfig); i {
   676  			case 0:
   677  				return &v.state
   678  			case 1:
   679  				return &v.sizeCache
   680  			case 2:
   681  				return &v.unknownFields
   682  			default:
   683  				return nil
   684  			}
   685  		}
   686  		file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   687  			switch v := v.(*StreamConfig); 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[2].Exporter = func(v interface{}, i int) interface{} {
   699  			switch v := v.(*ProxyConfig); 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[3].Exporter = func(v interface{}, i int) interface{} {
   711  			switch v := v.(*SocketConfig); 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  	}
   723  	type x struct{}
   724  	out := protoimpl.TypeBuilder{
   725  		File: protoimpl.DescBuilder{
   726  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   727  			RawDescriptor: file_transport_internet_config_proto_rawDesc,
   728  			NumEnums:      3,
   729  			NumMessages:   4,
   730  			NumExtensions: 0,
   731  			NumServices:   0,
   732  		},
   733  		GoTypes:           file_transport_internet_config_proto_goTypes,
   734  		DependencyIndexes: file_transport_internet_config_proto_depIdxs,
   735  		EnumInfos:         file_transport_internet_config_proto_enumTypes,
   736  		MessageInfos:      file_transport_internet_config_proto_msgTypes,
   737  	}.Build()
   738  	File_transport_internet_config_proto = out.File
   739  	file_transport_internet_config_proto_rawDesc = nil
   740  	file_transport_internet_config_proto_goTypes = nil
   741  	file_transport_internet_config_proto_depIdxs = nil
   742  }