config.pb.go 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.23.1
  5. // source: app/proxyman/config.proto
  6. package proxyman
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. serial "github.com/xtls/xray-core/common/serial"
  10. internet "github.com/xtls/xray-core/transport/internet"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type KnownProtocols int32
  23. const (
  24. KnownProtocols_HTTP KnownProtocols = 0
  25. KnownProtocols_TLS KnownProtocols = 1
  26. )
  27. // Enum value maps for KnownProtocols.
  28. var (
  29. KnownProtocols_name = map[int32]string{
  30. 0: "HTTP",
  31. 1: "TLS",
  32. }
  33. KnownProtocols_value = map[string]int32{
  34. "HTTP": 0,
  35. "TLS": 1,
  36. }
  37. )
  38. func (x KnownProtocols) Enum() *KnownProtocols {
  39. p := new(KnownProtocols)
  40. *p = x
  41. return p
  42. }
  43. func (x KnownProtocols) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (KnownProtocols) Descriptor() protoreflect.EnumDescriptor {
  47. return file_app_proxyman_config_proto_enumTypes[0].Descriptor()
  48. }
  49. func (KnownProtocols) Type() protoreflect.EnumType {
  50. return &file_app_proxyman_config_proto_enumTypes[0]
  51. }
  52. func (x KnownProtocols) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use KnownProtocols.Descriptor instead.
  56. func (KnownProtocols) EnumDescriptor() ([]byte, []int) {
  57. return file_app_proxyman_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. type AllocationStrategy_Type int32
  60. const (
  61. // Always allocate all connection handlers.
  62. AllocationStrategy_Always AllocationStrategy_Type = 0
  63. // Randomly allocate specific range of handlers.
  64. AllocationStrategy_Random AllocationStrategy_Type = 1
  65. // External. Not supported yet.
  66. AllocationStrategy_External AllocationStrategy_Type = 2
  67. )
  68. // Enum value maps for AllocationStrategy_Type.
  69. var (
  70. AllocationStrategy_Type_name = map[int32]string{
  71. 0: "Always",
  72. 1: "Random",
  73. 2: "External",
  74. }
  75. AllocationStrategy_Type_value = map[string]int32{
  76. "Always": 0,
  77. "Random": 1,
  78. "External": 2,
  79. }
  80. )
  81. func (x AllocationStrategy_Type) Enum() *AllocationStrategy_Type {
  82. p := new(AllocationStrategy_Type)
  83. *p = x
  84. return p
  85. }
  86. func (x AllocationStrategy_Type) String() string {
  87. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  88. }
  89. func (AllocationStrategy_Type) Descriptor() protoreflect.EnumDescriptor {
  90. return file_app_proxyman_config_proto_enumTypes[1].Descriptor()
  91. }
  92. func (AllocationStrategy_Type) Type() protoreflect.EnumType {
  93. return &file_app_proxyman_config_proto_enumTypes[1]
  94. }
  95. func (x AllocationStrategy_Type) Number() protoreflect.EnumNumber {
  96. return protoreflect.EnumNumber(x)
  97. }
  98. // Deprecated: Use AllocationStrategy_Type.Descriptor instead.
  99. func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) {
  100. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0}
  101. }
  102. type InboundConfig struct {
  103. state protoimpl.MessageState
  104. sizeCache protoimpl.SizeCache
  105. unknownFields protoimpl.UnknownFields
  106. }
  107. func (x *InboundConfig) Reset() {
  108. *x = InboundConfig{}
  109. if protoimpl.UnsafeEnabled {
  110. mi := &file_app_proxyman_config_proto_msgTypes[0]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. }
  115. func (x *InboundConfig) String() string {
  116. return protoimpl.X.MessageStringOf(x)
  117. }
  118. func (*InboundConfig) ProtoMessage() {}
  119. func (x *InboundConfig) ProtoReflect() protoreflect.Message {
  120. mi := &file_app_proxyman_config_proto_msgTypes[0]
  121. if protoimpl.UnsafeEnabled && x != nil {
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. if ms.LoadMessageInfo() == nil {
  124. ms.StoreMessageInfo(mi)
  125. }
  126. return ms
  127. }
  128. return mi.MessageOf(x)
  129. }
  130. // Deprecated: Use InboundConfig.ProtoReflect.Descriptor instead.
  131. func (*InboundConfig) Descriptor() ([]byte, []int) {
  132. return file_app_proxyman_config_proto_rawDescGZIP(), []int{0}
  133. }
  134. type AllocationStrategy struct {
  135. state protoimpl.MessageState
  136. sizeCache protoimpl.SizeCache
  137. unknownFields protoimpl.UnknownFields
  138. Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.proxyman.AllocationStrategy_Type" json:"type,omitempty"`
  139. // Number of handlers (ports) running in parallel.
  140. // Default value is 3 if unset.
  141. Concurrency *AllocationStrategy_AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  142. // Number of minutes before a handler is regenerated.
  143. // Default value is 5 if unset.
  144. Refresh *AllocationStrategy_AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh,proto3" json:"refresh,omitempty"`
  145. }
  146. func (x *AllocationStrategy) Reset() {
  147. *x = AllocationStrategy{}
  148. if protoimpl.UnsafeEnabled {
  149. mi := &file_app_proxyman_config_proto_msgTypes[1]
  150. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  151. ms.StoreMessageInfo(mi)
  152. }
  153. }
  154. func (x *AllocationStrategy) String() string {
  155. return protoimpl.X.MessageStringOf(x)
  156. }
  157. func (*AllocationStrategy) ProtoMessage() {}
  158. func (x *AllocationStrategy) ProtoReflect() protoreflect.Message {
  159. mi := &file_app_proxyman_config_proto_msgTypes[1]
  160. if protoimpl.UnsafeEnabled && x != nil {
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. if ms.LoadMessageInfo() == nil {
  163. ms.StoreMessageInfo(mi)
  164. }
  165. return ms
  166. }
  167. return mi.MessageOf(x)
  168. }
  169. // Deprecated: Use AllocationStrategy.ProtoReflect.Descriptor instead.
  170. func (*AllocationStrategy) Descriptor() ([]byte, []int) {
  171. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1}
  172. }
  173. func (x *AllocationStrategy) GetType() AllocationStrategy_Type {
  174. if x != nil {
  175. return x.Type
  176. }
  177. return AllocationStrategy_Always
  178. }
  179. func (x *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency {
  180. if x != nil {
  181. return x.Concurrency
  182. }
  183. return nil
  184. }
  185. func (x *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh {
  186. if x != nil {
  187. return x.Refresh
  188. }
  189. return nil
  190. }
  191. type SniffingConfig struct {
  192. state protoimpl.MessageState
  193. sizeCache protoimpl.SizeCache
  194. unknownFields protoimpl.UnknownFields
  195. // Whether or not to enable content sniffing on an inbound connection.
  196. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  197. // Override target destination if sniff'ed protocol is in the given list.
  198. // Supported values are "http", "tls", "fakedns".
  199. DestinationOverride []string `protobuf:"bytes,2,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  200. DomainsExcluded []string `protobuf:"bytes,3,rep,name=domains_excluded,json=domainsExcluded,proto3" json:"domains_excluded,omitempty"`
  201. // Whether should only try to sniff metadata without waiting for client input.
  202. // Can be used to support SMTP like protocol where server send the first
  203. // message.
  204. MetadataOnly bool `protobuf:"varint,4,opt,name=metadata_only,json=metadataOnly,proto3" json:"metadata_only,omitempty"`
  205. RouteOnly bool `protobuf:"varint,5,opt,name=route_only,json=routeOnly,proto3" json:"route_only,omitempty"`
  206. }
  207. func (x *SniffingConfig) Reset() {
  208. *x = SniffingConfig{}
  209. if protoimpl.UnsafeEnabled {
  210. mi := &file_app_proxyman_config_proto_msgTypes[2]
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. ms.StoreMessageInfo(mi)
  213. }
  214. }
  215. func (x *SniffingConfig) String() string {
  216. return protoimpl.X.MessageStringOf(x)
  217. }
  218. func (*SniffingConfig) ProtoMessage() {}
  219. func (x *SniffingConfig) ProtoReflect() protoreflect.Message {
  220. mi := &file_app_proxyman_config_proto_msgTypes[2]
  221. if protoimpl.UnsafeEnabled && x != nil {
  222. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  223. if ms.LoadMessageInfo() == nil {
  224. ms.StoreMessageInfo(mi)
  225. }
  226. return ms
  227. }
  228. return mi.MessageOf(x)
  229. }
  230. // Deprecated: Use SniffingConfig.ProtoReflect.Descriptor instead.
  231. func (*SniffingConfig) Descriptor() ([]byte, []int) {
  232. return file_app_proxyman_config_proto_rawDescGZIP(), []int{2}
  233. }
  234. func (x *SniffingConfig) GetEnabled() bool {
  235. if x != nil {
  236. return x.Enabled
  237. }
  238. return false
  239. }
  240. func (x *SniffingConfig) GetDestinationOverride() []string {
  241. if x != nil {
  242. return x.DestinationOverride
  243. }
  244. return nil
  245. }
  246. func (x *SniffingConfig) GetDomainsExcluded() []string {
  247. if x != nil {
  248. return x.DomainsExcluded
  249. }
  250. return nil
  251. }
  252. func (x *SniffingConfig) GetMetadataOnly() bool {
  253. if x != nil {
  254. return x.MetadataOnly
  255. }
  256. return false
  257. }
  258. func (x *SniffingConfig) GetRouteOnly() bool {
  259. if x != nil {
  260. return x.RouteOnly
  261. }
  262. return false
  263. }
  264. type ReceiverConfig struct {
  265. state protoimpl.MessageState
  266. sizeCache protoimpl.SizeCache
  267. unknownFields protoimpl.UnknownFields
  268. // PortList specifies the ports which the Receiver should listen on.
  269. PortList *net.PortList `protobuf:"bytes,1,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  270. // Listen specifies the IP address that the Receiver should listen on.
  271. Listen *net.IPOrDomain `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"`
  272. AllocationStrategy *AllocationStrategy `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy,proto3" json:"allocation_strategy,omitempty"`
  273. StreamSettings *internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
  274. ReceiveOriginalDestination bool `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination,proto3" json:"receive_original_destination,omitempty"`
  275. // Override domains for the given protocol.
  276. // Deprecated. Use sniffing_settings.
  277. //
  278. // Deprecated: Marked as deprecated in app/proxyman/config.proto.
  279. DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,proto3,enum=xray.app.proxyman.KnownProtocols" json:"domain_override,omitempty"`
  280. SniffingSettings *SniffingConfig `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"`
  281. }
  282. func (x *ReceiverConfig) Reset() {
  283. *x = ReceiverConfig{}
  284. if protoimpl.UnsafeEnabled {
  285. mi := &file_app_proxyman_config_proto_msgTypes[3]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. }
  290. func (x *ReceiverConfig) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*ReceiverConfig) ProtoMessage() {}
  294. func (x *ReceiverConfig) ProtoReflect() protoreflect.Message {
  295. mi := &file_app_proxyman_config_proto_msgTypes[3]
  296. if protoimpl.UnsafeEnabled && x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use ReceiverConfig.ProtoReflect.Descriptor instead.
  306. func (*ReceiverConfig) Descriptor() ([]byte, []int) {
  307. return file_app_proxyman_config_proto_rawDescGZIP(), []int{3}
  308. }
  309. func (x *ReceiverConfig) GetPortList() *net.PortList {
  310. if x != nil {
  311. return x.PortList
  312. }
  313. return nil
  314. }
  315. func (x *ReceiverConfig) GetListen() *net.IPOrDomain {
  316. if x != nil {
  317. return x.Listen
  318. }
  319. return nil
  320. }
  321. func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy {
  322. if x != nil {
  323. return x.AllocationStrategy
  324. }
  325. return nil
  326. }
  327. func (x *ReceiverConfig) GetStreamSettings() *internet.StreamConfig {
  328. if x != nil {
  329. return x.StreamSettings
  330. }
  331. return nil
  332. }
  333. func (x *ReceiverConfig) GetReceiveOriginalDestination() bool {
  334. if x != nil {
  335. return x.ReceiveOriginalDestination
  336. }
  337. return false
  338. }
  339. // Deprecated: Marked as deprecated in app/proxyman/config.proto.
  340. func (x *ReceiverConfig) GetDomainOverride() []KnownProtocols {
  341. if x != nil {
  342. return x.DomainOverride
  343. }
  344. return nil
  345. }
  346. func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig {
  347. if x != nil {
  348. return x.SniffingSettings
  349. }
  350. return nil
  351. }
  352. type InboundHandlerConfig struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  357. ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
  358. ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  359. }
  360. func (x *InboundHandlerConfig) Reset() {
  361. *x = InboundHandlerConfig{}
  362. if protoimpl.UnsafeEnabled {
  363. mi := &file_app_proxyman_config_proto_msgTypes[4]
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. ms.StoreMessageInfo(mi)
  366. }
  367. }
  368. func (x *InboundHandlerConfig) String() string {
  369. return protoimpl.X.MessageStringOf(x)
  370. }
  371. func (*InboundHandlerConfig) ProtoMessage() {}
  372. func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message {
  373. mi := &file_app_proxyman_config_proto_msgTypes[4]
  374. if protoimpl.UnsafeEnabled && x != nil {
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. if ms.LoadMessageInfo() == nil {
  377. ms.StoreMessageInfo(mi)
  378. }
  379. return ms
  380. }
  381. return mi.MessageOf(x)
  382. }
  383. // Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead.
  384. func (*InboundHandlerConfig) Descriptor() ([]byte, []int) {
  385. return file_app_proxyman_config_proto_rawDescGZIP(), []int{4}
  386. }
  387. func (x *InboundHandlerConfig) GetTag() string {
  388. if x != nil {
  389. return x.Tag
  390. }
  391. return ""
  392. }
  393. func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage {
  394. if x != nil {
  395. return x.ReceiverSettings
  396. }
  397. return nil
  398. }
  399. func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage {
  400. if x != nil {
  401. return x.ProxySettings
  402. }
  403. return nil
  404. }
  405. type OutboundConfig struct {
  406. state protoimpl.MessageState
  407. sizeCache protoimpl.SizeCache
  408. unknownFields protoimpl.UnknownFields
  409. }
  410. func (x *OutboundConfig) Reset() {
  411. *x = OutboundConfig{}
  412. if protoimpl.UnsafeEnabled {
  413. mi := &file_app_proxyman_config_proto_msgTypes[5]
  414. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  415. ms.StoreMessageInfo(mi)
  416. }
  417. }
  418. func (x *OutboundConfig) String() string {
  419. return protoimpl.X.MessageStringOf(x)
  420. }
  421. func (*OutboundConfig) ProtoMessage() {}
  422. func (x *OutboundConfig) ProtoReflect() protoreflect.Message {
  423. mi := &file_app_proxyman_config_proto_msgTypes[5]
  424. if protoimpl.UnsafeEnabled && x != nil {
  425. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  426. if ms.LoadMessageInfo() == nil {
  427. ms.StoreMessageInfo(mi)
  428. }
  429. return ms
  430. }
  431. return mi.MessageOf(x)
  432. }
  433. // Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead.
  434. func (*OutboundConfig) Descriptor() ([]byte, []int) {
  435. return file_app_proxyman_config_proto_rawDescGZIP(), []int{5}
  436. }
  437. type SenderConfig struct {
  438. state protoimpl.MessageState
  439. sizeCache protoimpl.SizeCache
  440. unknownFields protoimpl.UnknownFields
  441. // Send traffic through the given IP. Only IP is allowed.
  442. Via *net.IPOrDomain `protobuf:"bytes,1,opt,name=via,proto3" json:"via,omitempty"`
  443. StreamSettings *internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
  444. ProxySettings *internet.ProxyConfig `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  445. MultiplexSettings *MultiplexingConfig `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings,proto3" json:"multiplex_settings,omitempty"`
  446. }
  447. func (x *SenderConfig) Reset() {
  448. *x = SenderConfig{}
  449. if protoimpl.UnsafeEnabled {
  450. mi := &file_app_proxyman_config_proto_msgTypes[6]
  451. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  452. ms.StoreMessageInfo(mi)
  453. }
  454. }
  455. func (x *SenderConfig) String() string {
  456. return protoimpl.X.MessageStringOf(x)
  457. }
  458. func (*SenderConfig) ProtoMessage() {}
  459. func (x *SenderConfig) ProtoReflect() protoreflect.Message {
  460. mi := &file_app_proxyman_config_proto_msgTypes[6]
  461. if protoimpl.UnsafeEnabled && x != nil {
  462. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  463. if ms.LoadMessageInfo() == nil {
  464. ms.StoreMessageInfo(mi)
  465. }
  466. return ms
  467. }
  468. return mi.MessageOf(x)
  469. }
  470. // Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead.
  471. func (*SenderConfig) Descriptor() ([]byte, []int) {
  472. return file_app_proxyman_config_proto_rawDescGZIP(), []int{6}
  473. }
  474. func (x *SenderConfig) GetVia() *net.IPOrDomain {
  475. if x != nil {
  476. return x.Via
  477. }
  478. return nil
  479. }
  480. func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig {
  481. if x != nil {
  482. return x.StreamSettings
  483. }
  484. return nil
  485. }
  486. func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig {
  487. if x != nil {
  488. return x.ProxySettings
  489. }
  490. return nil
  491. }
  492. func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig {
  493. if x != nil {
  494. return x.MultiplexSettings
  495. }
  496. return nil
  497. }
  498. type MultiplexingConfig struct {
  499. state protoimpl.MessageState
  500. sizeCache protoimpl.SizeCache
  501. unknownFields protoimpl.UnknownFields
  502. // Whether or not Mux is enabled.
  503. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  504. // Max number of concurrent connections that one Mux connection can handle.
  505. Concurrency int32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  506. // Transport XUDP in another Mux.
  507. XudpConcurrency int32 `protobuf:"varint,3,opt,name=xudpConcurrency,proto3" json:"xudpConcurrency,omitempty"`
  508. // "reject" (default), "allow" or "skip".
  509. XudpProxyUDP443 string `protobuf:"bytes,4,opt,name=xudpProxyUDP443,proto3" json:"xudpProxyUDP443,omitempty"`
  510. }
  511. func (x *MultiplexingConfig) Reset() {
  512. *x = MultiplexingConfig{}
  513. if protoimpl.UnsafeEnabled {
  514. mi := &file_app_proxyman_config_proto_msgTypes[7]
  515. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  516. ms.StoreMessageInfo(mi)
  517. }
  518. }
  519. func (x *MultiplexingConfig) String() string {
  520. return protoimpl.X.MessageStringOf(x)
  521. }
  522. func (*MultiplexingConfig) ProtoMessage() {}
  523. func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message {
  524. mi := &file_app_proxyman_config_proto_msgTypes[7]
  525. if protoimpl.UnsafeEnabled && x != nil {
  526. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  527. if ms.LoadMessageInfo() == nil {
  528. ms.StoreMessageInfo(mi)
  529. }
  530. return ms
  531. }
  532. return mi.MessageOf(x)
  533. }
  534. // Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.
  535. func (*MultiplexingConfig) Descriptor() ([]byte, []int) {
  536. return file_app_proxyman_config_proto_rawDescGZIP(), []int{7}
  537. }
  538. func (x *MultiplexingConfig) GetEnabled() bool {
  539. if x != nil {
  540. return x.Enabled
  541. }
  542. return false
  543. }
  544. func (x *MultiplexingConfig) GetConcurrency() int32 {
  545. if x != nil {
  546. return x.Concurrency
  547. }
  548. return 0
  549. }
  550. func (x *MultiplexingConfig) GetXudpConcurrency() int32 {
  551. if x != nil {
  552. return x.XudpConcurrency
  553. }
  554. return 0
  555. }
  556. func (x *MultiplexingConfig) GetXudpProxyUDP443() string {
  557. if x != nil {
  558. return x.XudpProxyUDP443
  559. }
  560. return ""
  561. }
  562. type AllocationStrategy_AllocationStrategyConcurrency struct {
  563. state protoimpl.MessageState
  564. sizeCache protoimpl.SizeCache
  565. unknownFields protoimpl.UnknownFields
  566. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  567. }
  568. func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset() {
  569. *x = AllocationStrategy_AllocationStrategyConcurrency{}
  570. if protoimpl.UnsafeEnabled {
  571. mi := &file_app_proxyman_config_proto_msgTypes[8]
  572. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  573. ms.StoreMessageInfo(mi)
  574. }
  575. }
  576. func (x *AllocationStrategy_AllocationStrategyConcurrency) String() string {
  577. return protoimpl.X.MessageStringOf(x)
  578. }
  579. func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {}
  580. func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect() protoreflect.Message {
  581. mi := &file_app_proxyman_config_proto_msgTypes[8]
  582. if protoimpl.UnsafeEnabled && x != nil {
  583. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  584. if ms.LoadMessageInfo() == nil {
  585. ms.StoreMessageInfo(mi)
  586. }
  587. return ms
  588. }
  589. return mi.MessageOf(x)
  590. }
  591. // Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead.
  592. func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) {
  593. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0}
  594. }
  595. func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 {
  596. if x != nil {
  597. return x.Value
  598. }
  599. return 0
  600. }
  601. type AllocationStrategy_AllocationStrategyRefresh struct {
  602. state protoimpl.MessageState
  603. sizeCache protoimpl.SizeCache
  604. unknownFields protoimpl.UnknownFields
  605. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  606. }
  607. func (x *AllocationStrategy_AllocationStrategyRefresh) Reset() {
  608. *x = AllocationStrategy_AllocationStrategyRefresh{}
  609. if protoimpl.UnsafeEnabled {
  610. mi := &file_app_proxyman_config_proto_msgTypes[9]
  611. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  612. ms.StoreMessageInfo(mi)
  613. }
  614. }
  615. func (x *AllocationStrategy_AllocationStrategyRefresh) String() string {
  616. return protoimpl.X.MessageStringOf(x)
  617. }
  618. func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {}
  619. func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() protoreflect.Message {
  620. mi := &file_app_proxyman_config_proto_msgTypes[9]
  621. if protoimpl.UnsafeEnabled && x != nil {
  622. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  623. if ms.LoadMessageInfo() == nil {
  624. ms.StoreMessageInfo(mi)
  625. }
  626. return ms
  627. }
  628. return mi.MessageOf(x)
  629. }
  630. // Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead.
  631. func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) {
  632. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 1}
  633. }
  634. func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
  635. if x != nil {
  636. return x.Value
  637. }
  638. return 0
  639. }
  640. var File_app_proxyman_config_proto protoreflect.FileDescriptor
  641. var file_app_proxyman_config_proto_rawDesc = []byte{
  642. 0x0a, 0x19, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63,
  643. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61,
  644. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x1a, 0x18,
  645. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65,
  646. 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  647. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  648. 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  649. 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  650. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  651. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  652. 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f,
  653. 0x6e, 0x66, 0x69, 0x67, 0x22, 0xae, 0x03, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74,
  654. 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x3e, 0x0a, 0x04, 0x74,
  655. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79,
  656. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c,
  657. 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  658. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x0b, 0x63,
  659. 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  660. 0x32, 0x43, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  661. 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  662. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  663. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72,
  664. 0x72, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
  665. 0x63, 0x79, 0x12, 0x59, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20,
  666. 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  667. 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  668. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
  669. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66,
  670. 0x72, 0x65, 0x73, 0x68, 0x52, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x1a, 0x35, 0x0a,
  671. 0x1d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74,
  672. 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14,
  673. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76,
  674. 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x31, 0x0a, 0x19, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  675. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73,
  676. 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  677. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,
  678. 0x0a, 0x0a, 0x06, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52,
  679. 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72,
  680. 0x6e, 0x61, 0x6c, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x0e, 0x53, 0x6e, 0x69, 0x66, 0x66, 0x69,
  681. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
  682. 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  683. 0x65, 0x64, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
  684. 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
  685. 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65,
  686. 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  687. 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,
  688. 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64,
  689. 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6f, 0x6e, 0x6c,
  690. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
  691. 0x61, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6f,
  692. 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65,
  693. 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x8d, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  694. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  695. 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61,
  696. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72,
  697. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12,
  698. 0x33, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  699. 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  700. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x6c, 0x69,
  701. 0x73, 0x74, 0x65, 0x6e, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  702. 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  703. 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  704. 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  705. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61,
  706. 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4e, 0x0a, 0x0f,
  707. 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  708. 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  709. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  710. 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74,
  711. 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x1c,
  712. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  713. 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,
  714. 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69,
  715. 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e,
  716. 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
  717. 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  718. 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4b, 0x6e, 0x6f, 0x77,
  719. 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e,
  720. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x4e,
  721. 0x0a, 0x11, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
  722. 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79,
  723. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x6e,
  724. 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x6e,
  725. 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x4a, 0x04,
  726. 0x08, 0x06, 0x10, 0x07, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  727. 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a,
  728. 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
  729. 0x4d, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74,
  730. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  731. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  732. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65,
  733. 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x47,
  734. 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  735. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  736. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65,
  737. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53,
  738. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  739. 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xb0, 0x02, 0x0a, 0x0c, 0x53, 0x65,
  740. 0x6e, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x76, 0x69,
  741. 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  742. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f,
  743. 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x76, 0x69, 0x61, 0x12, 0x4e, 0x0a, 0x0f, 0x73, 0x74, 0x72,
  744. 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01,
  745. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  746. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x74, 0x72,
  747. 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61,
  748. 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0e, 0x70, 0x72, 0x6f,
  749. 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
  750. 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  751. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  752. 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65,
  753. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  754. 0x6c, 0x65, 0x78, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01,
  755. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72,
  756. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78,
  757. 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69,
  758. 0x70, 0x6c, 0x65, 0x78, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xa4, 0x01, 0x0a,
  759. 0x12, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e,
  760. 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01,
  761. 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x20, 0x0a,
  762. 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01,
  763. 0x28, 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12,
  764. 0x28, 0x0a, 0x0f, 0x78, 0x75, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
  765. 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x78, 0x75, 0x64, 0x70, 0x43, 0x6f,
  766. 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x78, 0x75, 0x64,
  767. 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x44, 0x50, 0x34, 0x34, 0x33, 0x18, 0x04, 0x20, 0x01,
  768. 0x28, 0x09, 0x52, 0x0f, 0x78, 0x75, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x44, 0x50,
  769. 0x34, 0x34, 0x33, 0x2a, 0x23, 0x0a, 0x0e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74,
  770. 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, 0x12,
  771. 0x07, 0x0a, 0x03, 0x54, 0x4c, 0x53, 0x10, 0x01, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e,
  772. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61,
  773. 0x6e, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  774. 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61,
  775. 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72,
  776. 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x62,
  777. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  778. }
  779. var (
  780. file_app_proxyman_config_proto_rawDescOnce sync.Once
  781. file_app_proxyman_config_proto_rawDescData = file_app_proxyman_config_proto_rawDesc
  782. )
  783. func file_app_proxyman_config_proto_rawDescGZIP() []byte {
  784. file_app_proxyman_config_proto_rawDescOnce.Do(func() {
  785. file_app_proxyman_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proxyman_config_proto_rawDescData)
  786. })
  787. return file_app_proxyman_config_proto_rawDescData
  788. }
  789. var file_app_proxyman_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  790. var file_app_proxyman_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  791. var file_app_proxyman_config_proto_goTypes = []interface{}{
  792. (KnownProtocols)(0), // 0: xray.app.proxyman.KnownProtocols
  793. (AllocationStrategy_Type)(0), // 1: xray.app.proxyman.AllocationStrategy.Type
  794. (*InboundConfig)(nil), // 2: xray.app.proxyman.InboundConfig
  795. (*AllocationStrategy)(nil), // 3: xray.app.proxyman.AllocationStrategy
  796. (*SniffingConfig)(nil), // 4: xray.app.proxyman.SniffingConfig
  797. (*ReceiverConfig)(nil), // 5: xray.app.proxyman.ReceiverConfig
  798. (*InboundHandlerConfig)(nil), // 6: xray.app.proxyman.InboundHandlerConfig
  799. (*OutboundConfig)(nil), // 7: xray.app.proxyman.OutboundConfig
  800. (*SenderConfig)(nil), // 8: xray.app.proxyman.SenderConfig
  801. (*MultiplexingConfig)(nil), // 9: xray.app.proxyman.MultiplexingConfig
  802. (*AllocationStrategy_AllocationStrategyConcurrency)(nil), // 10: xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  803. (*AllocationStrategy_AllocationStrategyRefresh)(nil), // 11: xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  804. (*net.PortList)(nil), // 12: xray.common.net.PortList
  805. (*net.IPOrDomain)(nil), // 13: xray.common.net.IPOrDomain
  806. (*internet.StreamConfig)(nil), // 14: xray.transport.internet.StreamConfig
  807. (*serial.TypedMessage)(nil), // 15: xray.common.serial.TypedMessage
  808. (*internet.ProxyConfig)(nil), // 16: xray.transport.internet.ProxyConfig
  809. }
  810. var file_app_proxyman_config_proto_depIdxs = []int32{
  811. 1, // 0: xray.app.proxyman.AllocationStrategy.type:type_name -> xray.app.proxyman.AllocationStrategy.Type
  812. 10, // 1: xray.app.proxyman.AllocationStrategy.concurrency:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  813. 11, // 2: xray.app.proxyman.AllocationStrategy.refresh:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  814. 12, // 3: xray.app.proxyman.ReceiverConfig.port_list:type_name -> xray.common.net.PortList
  815. 13, // 4: xray.app.proxyman.ReceiverConfig.listen:type_name -> xray.common.net.IPOrDomain
  816. 3, // 5: xray.app.proxyman.ReceiverConfig.allocation_strategy:type_name -> xray.app.proxyman.AllocationStrategy
  817. 14, // 6: xray.app.proxyman.ReceiverConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  818. 0, // 7: xray.app.proxyman.ReceiverConfig.domain_override:type_name -> xray.app.proxyman.KnownProtocols
  819. 4, // 8: xray.app.proxyman.ReceiverConfig.sniffing_settings:type_name -> xray.app.proxyman.SniffingConfig
  820. 15, // 9: xray.app.proxyman.InboundHandlerConfig.receiver_settings:type_name -> xray.common.serial.TypedMessage
  821. 15, // 10: xray.app.proxyman.InboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage
  822. 13, // 11: xray.app.proxyman.SenderConfig.via:type_name -> xray.common.net.IPOrDomain
  823. 14, // 12: xray.app.proxyman.SenderConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  824. 16, // 13: xray.app.proxyman.SenderConfig.proxy_settings:type_name -> xray.transport.internet.ProxyConfig
  825. 9, // 14: xray.app.proxyman.SenderConfig.multiplex_settings:type_name -> xray.app.proxyman.MultiplexingConfig
  826. 15, // [15:15] is the sub-list for method output_type
  827. 15, // [15:15] is the sub-list for method input_type
  828. 15, // [15:15] is the sub-list for extension type_name
  829. 15, // [15:15] is the sub-list for extension extendee
  830. 0, // [0:15] is the sub-list for field type_name
  831. }
  832. func init() { file_app_proxyman_config_proto_init() }
  833. func file_app_proxyman_config_proto_init() {
  834. if File_app_proxyman_config_proto != nil {
  835. return
  836. }
  837. if !protoimpl.UnsafeEnabled {
  838. file_app_proxyman_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  839. switch v := v.(*InboundConfig); i {
  840. case 0:
  841. return &v.state
  842. case 1:
  843. return &v.sizeCache
  844. case 2:
  845. return &v.unknownFields
  846. default:
  847. return nil
  848. }
  849. }
  850. file_app_proxyman_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  851. switch v := v.(*AllocationStrategy); i {
  852. case 0:
  853. return &v.state
  854. case 1:
  855. return &v.sizeCache
  856. case 2:
  857. return &v.unknownFields
  858. default:
  859. return nil
  860. }
  861. }
  862. file_app_proxyman_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  863. switch v := v.(*SniffingConfig); i {
  864. case 0:
  865. return &v.state
  866. case 1:
  867. return &v.sizeCache
  868. case 2:
  869. return &v.unknownFields
  870. default:
  871. return nil
  872. }
  873. }
  874. file_app_proxyman_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  875. switch v := v.(*ReceiverConfig); i {
  876. case 0:
  877. return &v.state
  878. case 1:
  879. return &v.sizeCache
  880. case 2:
  881. return &v.unknownFields
  882. default:
  883. return nil
  884. }
  885. }
  886. file_app_proxyman_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  887. switch v := v.(*InboundHandlerConfig); i {
  888. case 0:
  889. return &v.state
  890. case 1:
  891. return &v.sizeCache
  892. case 2:
  893. return &v.unknownFields
  894. default:
  895. return nil
  896. }
  897. }
  898. file_app_proxyman_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  899. switch v := v.(*OutboundConfig); i {
  900. case 0:
  901. return &v.state
  902. case 1:
  903. return &v.sizeCache
  904. case 2:
  905. return &v.unknownFields
  906. default:
  907. return nil
  908. }
  909. }
  910. file_app_proxyman_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  911. switch v := v.(*SenderConfig); i {
  912. case 0:
  913. return &v.state
  914. case 1:
  915. return &v.sizeCache
  916. case 2:
  917. return &v.unknownFields
  918. default:
  919. return nil
  920. }
  921. }
  922. file_app_proxyman_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  923. switch v := v.(*MultiplexingConfig); i {
  924. case 0:
  925. return &v.state
  926. case 1:
  927. return &v.sizeCache
  928. case 2:
  929. return &v.unknownFields
  930. default:
  931. return nil
  932. }
  933. }
  934. file_app_proxyman_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  935. switch v := v.(*AllocationStrategy_AllocationStrategyConcurrency); i {
  936. case 0:
  937. return &v.state
  938. case 1:
  939. return &v.sizeCache
  940. case 2:
  941. return &v.unknownFields
  942. default:
  943. return nil
  944. }
  945. }
  946. file_app_proxyman_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  947. switch v := v.(*AllocationStrategy_AllocationStrategyRefresh); i {
  948. case 0:
  949. return &v.state
  950. case 1:
  951. return &v.sizeCache
  952. case 2:
  953. return &v.unknownFields
  954. default:
  955. return nil
  956. }
  957. }
  958. }
  959. type x struct{}
  960. out := protoimpl.TypeBuilder{
  961. File: protoimpl.DescBuilder{
  962. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  963. RawDescriptor: file_app_proxyman_config_proto_rawDesc,
  964. NumEnums: 2,
  965. NumMessages: 10,
  966. NumExtensions: 0,
  967. NumServices: 0,
  968. },
  969. GoTypes: file_app_proxyman_config_proto_goTypes,
  970. DependencyIndexes: file_app_proxyman_config_proto_depIdxs,
  971. EnumInfos: file_app_proxyman_config_proto_enumTypes,
  972. MessageInfos: file_app_proxyman_config_proto_msgTypes,
  973. }.Build()
  974. File_app_proxyman_config_proto = out.File
  975. file_app_proxyman_config_proto_rawDesc = nil
  976. file_app_proxyman_config_proto_goTypes = nil
  977. file_app_proxyman_config_proto_depIdxs = nil
  978. }