config.pb.go 29 KB

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