config.pb.go 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.27.0
  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. ViaCidr string `protobuf:"bytes,5,opt,name=via_cidr,json=viaCidr,proto3" json:"via_cidr,omitempty"`
  447. }
  448. func (x *SenderConfig) Reset() {
  449. *x = SenderConfig{}
  450. if protoimpl.UnsafeEnabled {
  451. mi := &file_app_proxyman_config_proto_msgTypes[6]
  452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  453. ms.StoreMessageInfo(mi)
  454. }
  455. }
  456. func (x *SenderConfig) String() string {
  457. return protoimpl.X.MessageStringOf(x)
  458. }
  459. func (*SenderConfig) ProtoMessage() {}
  460. func (x *SenderConfig) ProtoReflect() protoreflect.Message {
  461. mi := &file_app_proxyman_config_proto_msgTypes[6]
  462. if protoimpl.UnsafeEnabled && x != nil {
  463. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  464. if ms.LoadMessageInfo() == nil {
  465. ms.StoreMessageInfo(mi)
  466. }
  467. return ms
  468. }
  469. return mi.MessageOf(x)
  470. }
  471. // Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead.
  472. func (*SenderConfig) Descriptor() ([]byte, []int) {
  473. return file_app_proxyman_config_proto_rawDescGZIP(), []int{6}
  474. }
  475. func (x *SenderConfig) GetVia() *net.IPOrDomain {
  476. if x != nil {
  477. return x.Via
  478. }
  479. return nil
  480. }
  481. func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig {
  482. if x != nil {
  483. return x.StreamSettings
  484. }
  485. return nil
  486. }
  487. func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig {
  488. if x != nil {
  489. return x.ProxySettings
  490. }
  491. return nil
  492. }
  493. func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig {
  494. if x != nil {
  495. return x.MultiplexSettings
  496. }
  497. return nil
  498. }
  499. func (x *SenderConfig) GetViaCidr() string {
  500. if x != nil {
  501. return x.ViaCidr
  502. }
  503. return ""
  504. }
  505. type MultiplexingConfig struct {
  506. state protoimpl.MessageState
  507. sizeCache protoimpl.SizeCache
  508. unknownFields protoimpl.UnknownFields
  509. // Whether or not Mux is enabled.
  510. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  511. // Max number of concurrent connections that one Mux connection can handle.
  512. Concurrency int32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  513. // Transport XUDP in another Mux.
  514. XudpConcurrency int32 `protobuf:"varint,3,opt,name=xudpConcurrency,proto3" json:"xudpConcurrency,omitempty"`
  515. // "reject" (default), "allow" or "skip".
  516. XudpProxyUDP443 string `protobuf:"bytes,4,opt,name=xudpProxyUDP443,proto3" json:"xudpProxyUDP443,omitempty"`
  517. }
  518. func (x *MultiplexingConfig) Reset() {
  519. *x = MultiplexingConfig{}
  520. if protoimpl.UnsafeEnabled {
  521. mi := &file_app_proxyman_config_proto_msgTypes[7]
  522. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  523. ms.StoreMessageInfo(mi)
  524. }
  525. }
  526. func (x *MultiplexingConfig) String() string {
  527. return protoimpl.X.MessageStringOf(x)
  528. }
  529. func (*MultiplexingConfig) ProtoMessage() {}
  530. func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message {
  531. mi := &file_app_proxyman_config_proto_msgTypes[7]
  532. if protoimpl.UnsafeEnabled && x != nil {
  533. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  534. if ms.LoadMessageInfo() == nil {
  535. ms.StoreMessageInfo(mi)
  536. }
  537. return ms
  538. }
  539. return mi.MessageOf(x)
  540. }
  541. // Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.
  542. func (*MultiplexingConfig) Descriptor() ([]byte, []int) {
  543. return file_app_proxyman_config_proto_rawDescGZIP(), []int{7}
  544. }
  545. func (x *MultiplexingConfig) GetEnabled() bool {
  546. if x != nil {
  547. return x.Enabled
  548. }
  549. return false
  550. }
  551. func (x *MultiplexingConfig) GetConcurrency() int32 {
  552. if x != nil {
  553. return x.Concurrency
  554. }
  555. return 0
  556. }
  557. func (x *MultiplexingConfig) GetXudpConcurrency() int32 {
  558. if x != nil {
  559. return x.XudpConcurrency
  560. }
  561. return 0
  562. }
  563. func (x *MultiplexingConfig) GetXudpProxyUDP443() string {
  564. if x != nil {
  565. return x.XudpProxyUDP443
  566. }
  567. return ""
  568. }
  569. type AllocationStrategy_AllocationStrategyConcurrency struct {
  570. state protoimpl.MessageState
  571. sizeCache protoimpl.SizeCache
  572. unknownFields protoimpl.UnknownFields
  573. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  574. }
  575. func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset() {
  576. *x = AllocationStrategy_AllocationStrategyConcurrency{}
  577. if protoimpl.UnsafeEnabled {
  578. mi := &file_app_proxyman_config_proto_msgTypes[8]
  579. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  580. ms.StoreMessageInfo(mi)
  581. }
  582. }
  583. func (x *AllocationStrategy_AllocationStrategyConcurrency) String() string {
  584. return protoimpl.X.MessageStringOf(x)
  585. }
  586. func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {}
  587. func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect() protoreflect.Message {
  588. mi := &file_app_proxyman_config_proto_msgTypes[8]
  589. if protoimpl.UnsafeEnabled && x != nil {
  590. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  591. if ms.LoadMessageInfo() == nil {
  592. ms.StoreMessageInfo(mi)
  593. }
  594. return ms
  595. }
  596. return mi.MessageOf(x)
  597. }
  598. // Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead.
  599. func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) {
  600. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 0}
  601. }
  602. func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 {
  603. if x != nil {
  604. return x.Value
  605. }
  606. return 0
  607. }
  608. type AllocationStrategy_AllocationStrategyRefresh struct {
  609. state protoimpl.MessageState
  610. sizeCache protoimpl.SizeCache
  611. unknownFields protoimpl.UnknownFields
  612. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  613. }
  614. func (x *AllocationStrategy_AllocationStrategyRefresh) Reset() {
  615. *x = AllocationStrategy_AllocationStrategyRefresh{}
  616. if protoimpl.UnsafeEnabled {
  617. mi := &file_app_proxyman_config_proto_msgTypes[9]
  618. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  619. ms.StoreMessageInfo(mi)
  620. }
  621. }
  622. func (x *AllocationStrategy_AllocationStrategyRefresh) String() string {
  623. return protoimpl.X.MessageStringOf(x)
  624. }
  625. func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {}
  626. func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() protoreflect.Message {
  627. mi := &file_app_proxyman_config_proto_msgTypes[9]
  628. if protoimpl.UnsafeEnabled && x != nil {
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. if ms.LoadMessageInfo() == nil {
  631. ms.StoreMessageInfo(mi)
  632. }
  633. return ms
  634. }
  635. return mi.MessageOf(x)
  636. }
  637. // Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead.
  638. func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) {
  639. return file_app_proxyman_config_proto_rawDescGZIP(), []int{1, 1}
  640. }
  641. func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
  642. if x != nil {
  643. return x.Value
  644. }
  645. return 0
  646. }
  647. var File_app_proxyman_config_proto protoreflect.FileDescriptor
  648. var file_app_proxyman_config_proto_rawDesc = []byte{
  649. 0x0a, 0x19, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63,
  650. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61,
  651. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x1a, 0x18,
  652. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65,
  653. 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  654. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  655. 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  656. 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  657. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  658. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  659. 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f,
  660. 0x6e, 0x66, 0x69, 0x67, 0x22, 0xae, 0x03, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74,
  661. 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x3e, 0x0a, 0x04, 0x74,
  662. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79,
  663. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c,
  664. 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  665. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x0b, 0x63,
  666. 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  667. 0x32, 0x43, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  668. 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  669. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  670. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72,
  671. 0x72, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
  672. 0x63, 0x79, 0x12, 0x59, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20,
  673. 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  674. 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  675. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
  676. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66,
  677. 0x72, 0x65, 0x73, 0x68, 0x52, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x1a, 0x35, 0x0a,
  678. 0x1d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74,
  679. 0x65, 0x67, 0x79, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14,
  680. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76,
  681. 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x31, 0x0a, 0x19, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  682. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73,
  683. 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  684. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,
  685. 0x0a, 0x0a, 0x06, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52,
  686. 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72,
  687. 0x6e, 0x61, 0x6c, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x0e, 0x53, 0x6e, 0x69, 0x66, 0x66, 0x69,
  688. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
  689. 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  690. 0x65, 0x64, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
  691. 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
  692. 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65,
  693. 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  694. 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,
  695. 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64,
  696. 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6f, 0x6e, 0x6c,
  697. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
  698. 0x61, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6f,
  699. 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65,
  700. 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x8d, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  701. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  702. 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61,
  703. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72,
  704. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12,
  705. 0x33, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  706. 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  707. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x6c, 0x69,
  708. 0x73, 0x74, 0x65, 0x6e, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
  709. 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  710. 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  711. 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  712. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61,
  713. 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4e, 0x0a, 0x0f,
  714. 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  715. 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  716. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  717. 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74,
  718. 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x1c,
  719. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  720. 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,
  721. 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69,
  722. 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e,
  723. 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
  724. 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  725. 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4b, 0x6e, 0x6f, 0x77,
  726. 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e,
  727. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x4e,
  728. 0x0a, 0x11, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
  729. 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79,
  730. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x6e,
  731. 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x6e,
  732. 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x4a, 0x04,
  733. 0x08, 0x06, 0x10, 0x07, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  734. 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a,
  735. 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
  736. 0x4d, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74,
  737. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  738. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  739. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65,
  740. 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x47,
  741. 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  742. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  743. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65,
  744. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53,
  745. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  746. 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xcb, 0x02, 0x0a, 0x0c, 0x53, 0x65,
  747. 0x6e, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x76, 0x69,
  748. 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  749. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f,
  750. 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x76, 0x69, 0x61, 0x12, 0x4e, 0x0a, 0x0f, 0x73, 0x74, 0x72,
  751. 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01,
  752. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  753. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x74, 0x72,
  754. 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61,
  755. 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0e, 0x70, 0x72, 0x6f,
  756. 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
  757. 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  758. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  759. 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65,
  760. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  761. 0x6c, 0x65, 0x78, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01,
  762. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72,
  763. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78,
  764. 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69,
  765. 0x70, 0x6c, 0x65, 0x78, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x19, 0x0a, 0x08,
  766. 0x76, 0x69, 0x61, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  767. 0x76, 0x69, 0x61, 0x43, 0x69, 0x64, 0x72, 0x22, 0xa4, 0x01, 0x0a, 0x12, 0x4d, 0x75, 0x6c, 0x74,
  768. 0x69, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18,
  769. 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
  770. 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63,
  771. 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63,
  772. 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x78, 0x75,
  773. 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20,
  774. 0x01, 0x28, 0x05, 0x52, 0x0f, 0x78, 0x75, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72,
  775. 0x65, 0x6e, 0x63, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x78, 0x75, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x78,
  776. 0x79, 0x55, 0x44, 0x50, 0x34, 0x34, 0x33, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x78,
  777. 0x75, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x44, 0x50, 0x34, 0x34, 0x33, 0x2a, 0x23,
  778. 0x0a, 0x0e, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73,
  779. 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x4c,
  780. 0x53, 0x10, 0x01, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  781. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x50, 0x01, 0x5a, 0x26,
  782. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  783. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72,
  784. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70,
  785. 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  786. 0x6f, 0x33,
  787. }
  788. var (
  789. file_app_proxyman_config_proto_rawDescOnce sync.Once
  790. file_app_proxyman_config_proto_rawDescData = file_app_proxyman_config_proto_rawDesc
  791. )
  792. func file_app_proxyman_config_proto_rawDescGZIP() []byte {
  793. file_app_proxyman_config_proto_rawDescOnce.Do(func() {
  794. file_app_proxyman_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proxyman_config_proto_rawDescData)
  795. })
  796. return file_app_proxyman_config_proto_rawDescData
  797. }
  798. var file_app_proxyman_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  799. var file_app_proxyman_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  800. var file_app_proxyman_config_proto_goTypes = []any{
  801. (KnownProtocols)(0), // 0: xray.app.proxyman.KnownProtocols
  802. (AllocationStrategy_Type)(0), // 1: xray.app.proxyman.AllocationStrategy.Type
  803. (*InboundConfig)(nil), // 2: xray.app.proxyman.InboundConfig
  804. (*AllocationStrategy)(nil), // 3: xray.app.proxyman.AllocationStrategy
  805. (*SniffingConfig)(nil), // 4: xray.app.proxyman.SniffingConfig
  806. (*ReceiverConfig)(nil), // 5: xray.app.proxyman.ReceiverConfig
  807. (*InboundHandlerConfig)(nil), // 6: xray.app.proxyman.InboundHandlerConfig
  808. (*OutboundConfig)(nil), // 7: xray.app.proxyman.OutboundConfig
  809. (*SenderConfig)(nil), // 8: xray.app.proxyman.SenderConfig
  810. (*MultiplexingConfig)(nil), // 9: xray.app.proxyman.MultiplexingConfig
  811. (*AllocationStrategy_AllocationStrategyConcurrency)(nil), // 10: xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  812. (*AllocationStrategy_AllocationStrategyRefresh)(nil), // 11: xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  813. (*net.PortList)(nil), // 12: xray.common.net.PortList
  814. (*net.IPOrDomain)(nil), // 13: xray.common.net.IPOrDomain
  815. (*internet.StreamConfig)(nil), // 14: xray.transport.internet.StreamConfig
  816. (*serial.TypedMessage)(nil), // 15: xray.common.serial.TypedMessage
  817. (*internet.ProxyConfig)(nil), // 16: xray.transport.internet.ProxyConfig
  818. }
  819. var file_app_proxyman_config_proto_depIdxs = []int32{
  820. 1, // 0: xray.app.proxyman.AllocationStrategy.type:type_name -> xray.app.proxyman.AllocationStrategy.Type
  821. 10, // 1: xray.app.proxyman.AllocationStrategy.concurrency:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency
  822. 11, // 2: xray.app.proxyman.AllocationStrategy.refresh:type_name -> xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh
  823. 12, // 3: xray.app.proxyman.ReceiverConfig.port_list:type_name -> xray.common.net.PortList
  824. 13, // 4: xray.app.proxyman.ReceiverConfig.listen:type_name -> xray.common.net.IPOrDomain
  825. 3, // 5: xray.app.proxyman.ReceiverConfig.allocation_strategy:type_name -> xray.app.proxyman.AllocationStrategy
  826. 14, // 6: xray.app.proxyman.ReceiverConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  827. 0, // 7: xray.app.proxyman.ReceiverConfig.domain_override:type_name -> xray.app.proxyman.KnownProtocols
  828. 4, // 8: xray.app.proxyman.ReceiverConfig.sniffing_settings:type_name -> xray.app.proxyman.SniffingConfig
  829. 15, // 9: xray.app.proxyman.InboundHandlerConfig.receiver_settings:type_name -> xray.common.serial.TypedMessage
  830. 15, // 10: xray.app.proxyman.InboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage
  831. 13, // 11: xray.app.proxyman.SenderConfig.via:type_name -> xray.common.net.IPOrDomain
  832. 14, // 12: xray.app.proxyman.SenderConfig.stream_settings:type_name -> xray.transport.internet.StreamConfig
  833. 16, // 13: xray.app.proxyman.SenderConfig.proxy_settings:type_name -> xray.transport.internet.ProxyConfig
  834. 9, // 14: xray.app.proxyman.SenderConfig.multiplex_settings:type_name -> xray.app.proxyman.MultiplexingConfig
  835. 15, // [15:15] is the sub-list for method output_type
  836. 15, // [15:15] is the sub-list for method input_type
  837. 15, // [15:15] is the sub-list for extension type_name
  838. 15, // [15:15] is the sub-list for extension extendee
  839. 0, // [0:15] is the sub-list for field type_name
  840. }
  841. func init() { file_app_proxyman_config_proto_init() }
  842. func file_app_proxyman_config_proto_init() {
  843. if File_app_proxyman_config_proto != nil {
  844. return
  845. }
  846. if !protoimpl.UnsafeEnabled {
  847. file_app_proxyman_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  848. switch v := v.(*InboundConfig); i {
  849. case 0:
  850. return &v.state
  851. case 1:
  852. return &v.sizeCache
  853. case 2:
  854. return &v.unknownFields
  855. default:
  856. return nil
  857. }
  858. }
  859. file_app_proxyman_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  860. switch v := v.(*AllocationStrategy); i {
  861. case 0:
  862. return &v.state
  863. case 1:
  864. return &v.sizeCache
  865. case 2:
  866. return &v.unknownFields
  867. default:
  868. return nil
  869. }
  870. }
  871. file_app_proxyman_config_proto_msgTypes[2].Exporter = func(v any, i int) any {
  872. switch v := v.(*SniffingConfig); i {
  873. case 0:
  874. return &v.state
  875. case 1:
  876. return &v.sizeCache
  877. case 2:
  878. return &v.unknownFields
  879. default:
  880. return nil
  881. }
  882. }
  883. file_app_proxyman_config_proto_msgTypes[3].Exporter = func(v any, i int) any {
  884. switch v := v.(*ReceiverConfig); i {
  885. case 0:
  886. return &v.state
  887. case 1:
  888. return &v.sizeCache
  889. case 2:
  890. return &v.unknownFields
  891. default:
  892. return nil
  893. }
  894. }
  895. file_app_proxyman_config_proto_msgTypes[4].Exporter = func(v any, i int) any {
  896. switch v := v.(*InboundHandlerConfig); i {
  897. case 0:
  898. return &v.state
  899. case 1:
  900. return &v.sizeCache
  901. case 2:
  902. return &v.unknownFields
  903. default:
  904. return nil
  905. }
  906. }
  907. file_app_proxyman_config_proto_msgTypes[5].Exporter = func(v any, i int) any {
  908. switch v := v.(*OutboundConfig); i {
  909. case 0:
  910. return &v.state
  911. case 1:
  912. return &v.sizeCache
  913. case 2:
  914. return &v.unknownFields
  915. default:
  916. return nil
  917. }
  918. }
  919. file_app_proxyman_config_proto_msgTypes[6].Exporter = func(v any, i int) any {
  920. switch v := v.(*SenderConfig); i {
  921. case 0:
  922. return &v.state
  923. case 1:
  924. return &v.sizeCache
  925. case 2:
  926. return &v.unknownFields
  927. default:
  928. return nil
  929. }
  930. }
  931. file_app_proxyman_config_proto_msgTypes[7].Exporter = func(v any, i int) any {
  932. switch v := v.(*MultiplexingConfig); i {
  933. case 0:
  934. return &v.state
  935. case 1:
  936. return &v.sizeCache
  937. case 2:
  938. return &v.unknownFields
  939. default:
  940. return nil
  941. }
  942. }
  943. file_app_proxyman_config_proto_msgTypes[8].Exporter = func(v any, i int) any {
  944. switch v := v.(*AllocationStrategy_AllocationStrategyConcurrency); i {
  945. case 0:
  946. return &v.state
  947. case 1:
  948. return &v.sizeCache
  949. case 2:
  950. return &v.unknownFields
  951. default:
  952. return nil
  953. }
  954. }
  955. file_app_proxyman_config_proto_msgTypes[9].Exporter = func(v any, i int) any {
  956. switch v := v.(*AllocationStrategy_AllocationStrategyRefresh); i {
  957. case 0:
  958. return &v.state
  959. case 1:
  960. return &v.sizeCache
  961. case 2:
  962. return &v.unknownFields
  963. default:
  964. return nil
  965. }
  966. }
  967. }
  968. type x struct{}
  969. out := protoimpl.TypeBuilder{
  970. File: protoimpl.DescBuilder{
  971. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  972. RawDescriptor: file_app_proxyman_config_proto_rawDesc,
  973. NumEnums: 2,
  974. NumMessages: 10,
  975. NumExtensions: 0,
  976. NumServices: 0,
  977. },
  978. GoTypes: file_app_proxyman_config_proto_goTypes,
  979. DependencyIndexes: file_app_proxyman_config_proto_depIdxs,
  980. EnumInfos: file_app_proxyman_config_proto_enumTypes,
  981. MessageInfos: file_app_proxyman_config_proto_msgTypes,
  982. }.Build()
  983. File_app_proxyman_config_proto = out.File
  984. file_app_proxyman_config_proto_rawDesc = nil
  985. file_app_proxyman_config_proto_goTypes = nil
  986. file_app_proxyman_config_proto_depIdxs = nil
  987. }