config.pb.go 28 KB

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