config.pb.go 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  5. // source: app/router/config.proto
  6. package router
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. serial "github.com/xtls/xray-core/common/serial"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // Type of domain value.
  22. type Domain_Type int32
  23. const (
  24. // The value is used as is.
  25. Domain_Plain Domain_Type = 0
  26. // The value is used as a regular expression.
  27. Domain_Regex Domain_Type = 1
  28. // The value is a root domain.
  29. Domain_Domain Domain_Type = 2
  30. // The value is a domain.
  31. Domain_Full Domain_Type = 3
  32. )
  33. // Enum value maps for Domain_Type.
  34. var (
  35. Domain_Type_name = map[int32]string{
  36. 0: "Plain",
  37. 1: "Regex",
  38. 2: "Domain",
  39. 3: "Full",
  40. }
  41. Domain_Type_value = map[string]int32{
  42. "Plain": 0,
  43. "Regex": 1,
  44. "Domain": 2,
  45. "Full": 3,
  46. }
  47. )
  48. func (x Domain_Type) Enum() *Domain_Type {
  49. p := new(Domain_Type)
  50. *p = x
  51. return p
  52. }
  53. func (x Domain_Type) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (Domain_Type) Descriptor() protoreflect.EnumDescriptor {
  57. return file_app_router_config_proto_enumTypes[0].Descriptor()
  58. }
  59. func (Domain_Type) Type() protoreflect.EnumType {
  60. return &file_app_router_config_proto_enumTypes[0]
  61. }
  62. func (x Domain_Type) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Use Domain_Type.Descriptor instead.
  66. func (Domain_Type) EnumDescriptor() ([]byte, []int) {
  67. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  68. }
  69. type Config_DomainStrategy int32
  70. const (
  71. // Use domain as is.
  72. Config_AsIs Config_DomainStrategy = 0
  73. // Always resolve IP for domains.
  74. Config_UseIp Config_DomainStrategy = 1
  75. // Resolve to IP if the domain doesn't match any rules.
  76. Config_IpIfNonMatch Config_DomainStrategy = 2
  77. // Resolve to IP if any rule requires IP matching.
  78. Config_IpOnDemand Config_DomainStrategy = 3
  79. )
  80. // Enum value maps for Config_DomainStrategy.
  81. var (
  82. Config_DomainStrategy_name = map[int32]string{
  83. 0: "AsIs",
  84. 1: "UseIp",
  85. 2: "IpIfNonMatch",
  86. 3: "IpOnDemand",
  87. }
  88. Config_DomainStrategy_value = map[string]int32{
  89. "AsIs": 0,
  90. "UseIp": 1,
  91. "IpIfNonMatch": 2,
  92. "IpOnDemand": 3,
  93. }
  94. )
  95. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  96. p := new(Config_DomainStrategy)
  97. *p = x
  98. return p
  99. }
  100. func (x Config_DomainStrategy) String() string {
  101. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  102. }
  103. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  104. return file_app_router_config_proto_enumTypes[1].Descriptor()
  105. }
  106. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  107. return &file_app_router_config_proto_enumTypes[1]
  108. }
  109. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  110. return protoreflect.EnumNumber(x)
  111. }
  112. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  113. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  114. return file_app_router_config_proto_rawDescGZIP(), []int{10, 0}
  115. }
  116. // Domain for routing decision.
  117. type Domain struct {
  118. state protoimpl.MessageState
  119. sizeCache protoimpl.SizeCache
  120. unknownFields protoimpl.UnknownFields
  121. // Domain matching type.
  122. Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.router.Domain_Type" json:"type,omitempty"`
  123. // Domain value.
  124. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  125. // Attributes of this domain. May be used for filtering.
  126. Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"`
  127. }
  128. func (x *Domain) Reset() {
  129. *x = Domain{}
  130. mi := &file_app_router_config_proto_msgTypes[0]
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. ms.StoreMessageInfo(mi)
  133. }
  134. func (x *Domain) String() string {
  135. return protoimpl.X.MessageStringOf(x)
  136. }
  137. func (*Domain) ProtoMessage() {}
  138. func (x *Domain) ProtoReflect() protoreflect.Message {
  139. mi := &file_app_router_config_proto_msgTypes[0]
  140. if x != nil {
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. if ms.LoadMessageInfo() == nil {
  143. ms.StoreMessageInfo(mi)
  144. }
  145. return ms
  146. }
  147. return mi.MessageOf(x)
  148. }
  149. // Deprecated: Use Domain.ProtoReflect.Descriptor instead.
  150. func (*Domain) Descriptor() ([]byte, []int) {
  151. return file_app_router_config_proto_rawDescGZIP(), []int{0}
  152. }
  153. func (x *Domain) GetType() Domain_Type {
  154. if x != nil {
  155. return x.Type
  156. }
  157. return Domain_Plain
  158. }
  159. func (x *Domain) GetValue() string {
  160. if x != nil {
  161. return x.Value
  162. }
  163. return ""
  164. }
  165. func (x *Domain) GetAttribute() []*Domain_Attribute {
  166. if x != nil {
  167. return x.Attribute
  168. }
  169. return nil
  170. }
  171. // IP for routing decision, in CIDR form.
  172. type CIDR struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. // IP address, should be either 4 or 16 bytes.
  177. Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  178. // Number of leading ones in the network mask.
  179. Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
  180. }
  181. func (x *CIDR) Reset() {
  182. *x = CIDR{}
  183. mi := &file_app_router_config_proto_msgTypes[1]
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. ms.StoreMessageInfo(mi)
  186. }
  187. func (x *CIDR) String() string {
  188. return protoimpl.X.MessageStringOf(x)
  189. }
  190. func (*CIDR) ProtoMessage() {}
  191. func (x *CIDR) ProtoReflect() protoreflect.Message {
  192. mi := &file_app_router_config_proto_msgTypes[1]
  193. if x != nil {
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. if ms.LoadMessageInfo() == nil {
  196. ms.StoreMessageInfo(mi)
  197. }
  198. return ms
  199. }
  200. return mi.MessageOf(x)
  201. }
  202. // Deprecated: Use CIDR.ProtoReflect.Descriptor instead.
  203. func (*CIDR) Descriptor() ([]byte, []int) {
  204. return file_app_router_config_proto_rawDescGZIP(), []int{1}
  205. }
  206. func (x *CIDR) GetIp() []byte {
  207. if x != nil {
  208. return x.Ip
  209. }
  210. return nil
  211. }
  212. func (x *CIDR) GetPrefix() uint32 {
  213. if x != nil {
  214. return x.Prefix
  215. }
  216. return 0
  217. }
  218. type GeoIP struct {
  219. state protoimpl.MessageState
  220. sizeCache protoimpl.SizeCache
  221. unknownFields protoimpl.UnknownFields
  222. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  223. Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"`
  224. ReverseMatch bool `protobuf:"varint,3,opt,name=reverse_match,json=reverseMatch,proto3" json:"reverse_match,omitempty"`
  225. }
  226. func (x *GeoIP) Reset() {
  227. *x = GeoIP{}
  228. mi := &file_app_router_config_proto_msgTypes[2]
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. ms.StoreMessageInfo(mi)
  231. }
  232. func (x *GeoIP) String() string {
  233. return protoimpl.X.MessageStringOf(x)
  234. }
  235. func (*GeoIP) ProtoMessage() {}
  236. func (x *GeoIP) ProtoReflect() protoreflect.Message {
  237. mi := &file_app_router_config_proto_msgTypes[2]
  238. if x != nil {
  239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  240. if ms.LoadMessageInfo() == nil {
  241. ms.StoreMessageInfo(mi)
  242. }
  243. return ms
  244. }
  245. return mi.MessageOf(x)
  246. }
  247. // Deprecated: Use GeoIP.ProtoReflect.Descriptor instead.
  248. func (*GeoIP) Descriptor() ([]byte, []int) {
  249. return file_app_router_config_proto_rawDescGZIP(), []int{2}
  250. }
  251. func (x *GeoIP) GetCountryCode() string {
  252. if x != nil {
  253. return x.CountryCode
  254. }
  255. return ""
  256. }
  257. func (x *GeoIP) GetCidr() []*CIDR {
  258. if x != nil {
  259. return x.Cidr
  260. }
  261. return nil
  262. }
  263. func (x *GeoIP) GetReverseMatch() bool {
  264. if x != nil {
  265. return x.ReverseMatch
  266. }
  267. return false
  268. }
  269. type GeoIPList struct {
  270. state protoimpl.MessageState
  271. sizeCache protoimpl.SizeCache
  272. unknownFields protoimpl.UnknownFields
  273. Entry []*GeoIP `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  274. }
  275. func (x *GeoIPList) Reset() {
  276. *x = GeoIPList{}
  277. mi := &file_app_router_config_proto_msgTypes[3]
  278. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  279. ms.StoreMessageInfo(mi)
  280. }
  281. func (x *GeoIPList) String() string {
  282. return protoimpl.X.MessageStringOf(x)
  283. }
  284. func (*GeoIPList) ProtoMessage() {}
  285. func (x *GeoIPList) ProtoReflect() protoreflect.Message {
  286. mi := &file_app_router_config_proto_msgTypes[3]
  287. if x != nil {
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. if ms.LoadMessageInfo() == nil {
  290. ms.StoreMessageInfo(mi)
  291. }
  292. return ms
  293. }
  294. return mi.MessageOf(x)
  295. }
  296. // Deprecated: Use GeoIPList.ProtoReflect.Descriptor instead.
  297. func (*GeoIPList) Descriptor() ([]byte, []int) {
  298. return file_app_router_config_proto_rawDescGZIP(), []int{3}
  299. }
  300. func (x *GeoIPList) GetEntry() []*GeoIP {
  301. if x != nil {
  302. return x.Entry
  303. }
  304. return nil
  305. }
  306. type GeoSite struct {
  307. state protoimpl.MessageState
  308. sizeCache protoimpl.SizeCache
  309. unknownFields protoimpl.UnknownFields
  310. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  311. Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  312. }
  313. func (x *GeoSite) Reset() {
  314. *x = GeoSite{}
  315. mi := &file_app_router_config_proto_msgTypes[4]
  316. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  317. ms.StoreMessageInfo(mi)
  318. }
  319. func (x *GeoSite) String() string {
  320. return protoimpl.X.MessageStringOf(x)
  321. }
  322. func (*GeoSite) ProtoMessage() {}
  323. func (x *GeoSite) ProtoReflect() protoreflect.Message {
  324. mi := &file_app_router_config_proto_msgTypes[4]
  325. if x != nil {
  326. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  327. if ms.LoadMessageInfo() == nil {
  328. ms.StoreMessageInfo(mi)
  329. }
  330. return ms
  331. }
  332. return mi.MessageOf(x)
  333. }
  334. // Deprecated: Use GeoSite.ProtoReflect.Descriptor instead.
  335. func (*GeoSite) Descriptor() ([]byte, []int) {
  336. return file_app_router_config_proto_rawDescGZIP(), []int{4}
  337. }
  338. func (x *GeoSite) GetCountryCode() string {
  339. if x != nil {
  340. return x.CountryCode
  341. }
  342. return ""
  343. }
  344. func (x *GeoSite) GetDomain() []*Domain {
  345. if x != nil {
  346. return x.Domain
  347. }
  348. return nil
  349. }
  350. type GeoSiteList struct {
  351. state protoimpl.MessageState
  352. sizeCache protoimpl.SizeCache
  353. unknownFields protoimpl.UnknownFields
  354. Entry []*GeoSite `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  355. }
  356. func (x *GeoSiteList) Reset() {
  357. *x = GeoSiteList{}
  358. mi := &file_app_router_config_proto_msgTypes[5]
  359. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  360. ms.StoreMessageInfo(mi)
  361. }
  362. func (x *GeoSiteList) String() string {
  363. return protoimpl.X.MessageStringOf(x)
  364. }
  365. func (*GeoSiteList) ProtoMessage() {}
  366. func (x *GeoSiteList) ProtoReflect() protoreflect.Message {
  367. mi := &file_app_router_config_proto_msgTypes[5]
  368. if x != nil {
  369. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  370. if ms.LoadMessageInfo() == nil {
  371. ms.StoreMessageInfo(mi)
  372. }
  373. return ms
  374. }
  375. return mi.MessageOf(x)
  376. }
  377. // Deprecated: Use GeoSiteList.ProtoReflect.Descriptor instead.
  378. func (*GeoSiteList) Descriptor() ([]byte, []int) {
  379. return file_app_router_config_proto_rawDescGZIP(), []int{5}
  380. }
  381. func (x *GeoSiteList) GetEntry() []*GeoSite {
  382. if x != nil {
  383. return x.Entry
  384. }
  385. return nil
  386. }
  387. type RoutingRule struct {
  388. state protoimpl.MessageState
  389. sizeCache protoimpl.SizeCache
  390. unknownFields protoimpl.UnknownFields
  391. // Types that are assignable to TargetTag:
  392. //
  393. // *RoutingRule_Tag
  394. // *RoutingRule_BalancingTag
  395. TargetTag isRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  396. RuleTag string `protobuf:"bytes,18,opt,name=rule_tag,json=ruleTag,proto3" json:"rule_tag,omitempty"`
  397. // List of domains for target domain matching.
  398. Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  399. // List of GeoIPs for target IP address matching. If this entry exists, the
  400. // cidr above will have no effect. GeoIP fields with the same country code are
  401. // supposed to contain exactly same content. They will be merged during
  402. // runtime. For customized GeoIPs, please leave country code empty.
  403. Geoip []*GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  404. // List of ports.
  405. PortList *net.PortList `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  406. // List of networks for matching.
  407. Networks []net.Network `protobuf:"varint,13,rep,packed,name=networks,proto3,enum=xray.common.net.Network" json:"networks,omitempty"`
  408. // List of GeoIPs for source IP address matching. If this entry exists, the
  409. // source_cidr above will have no effect.
  410. SourceGeoip []*GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  411. // List of ports for source port matching.
  412. SourcePortList *net.PortList `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  413. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  414. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  415. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  416. Attributes map[string]string `protobuf:"bytes,15,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  417. DomainMatcher string `protobuf:"bytes,17,opt,name=domain_matcher,json=domainMatcher,proto3" json:"domain_matcher,omitempty"`
  418. }
  419. func (x *RoutingRule) Reset() {
  420. *x = RoutingRule{}
  421. mi := &file_app_router_config_proto_msgTypes[6]
  422. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  423. ms.StoreMessageInfo(mi)
  424. }
  425. func (x *RoutingRule) String() string {
  426. return protoimpl.X.MessageStringOf(x)
  427. }
  428. func (*RoutingRule) ProtoMessage() {}
  429. func (x *RoutingRule) ProtoReflect() protoreflect.Message {
  430. mi := &file_app_router_config_proto_msgTypes[6]
  431. if x != nil {
  432. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  433. if ms.LoadMessageInfo() == nil {
  434. ms.StoreMessageInfo(mi)
  435. }
  436. return ms
  437. }
  438. return mi.MessageOf(x)
  439. }
  440. // Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead.
  441. func (*RoutingRule) Descriptor() ([]byte, []int) {
  442. return file_app_router_config_proto_rawDescGZIP(), []int{6}
  443. }
  444. func (m *RoutingRule) GetTargetTag() isRoutingRule_TargetTag {
  445. if m != nil {
  446. return m.TargetTag
  447. }
  448. return nil
  449. }
  450. func (x *RoutingRule) GetTag() string {
  451. if x, ok := x.GetTargetTag().(*RoutingRule_Tag); ok {
  452. return x.Tag
  453. }
  454. return ""
  455. }
  456. func (x *RoutingRule) GetBalancingTag() string {
  457. if x, ok := x.GetTargetTag().(*RoutingRule_BalancingTag); ok {
  458. return x.BalancingTag
  459. }
  460. return ""
  461. }
  462. func (x *RoutingRule) GetRuleTag() string {
  463. if x != nil {
  464. return x.RuleTag
  465. }
  466. return ""
  467. }
  468. func (x *RoutingRule) GetDomain() []*Domain {
  469. if x != nil {
  470. return x.Domain
  471. }
  472. return nil
  473. }
  474. func (x *RoutingRule) GetGeoip() []*GeoIP {
  475. if x != nil {
  476. return x.Geoip
  477. }
  478. return nil
  479. }
  480. func (x *RoutingRule) GetPortList() *net.PortList {
  481. if x != nil {
  482. return x.PortList
  483. }
  484. return nil
  485. }
  486. func (x *RoutingRule) GetNetworks() []net.Network {
  487. if x != nil {
  488. return x.Networks
  489. }
  490. return nil
  491. }
  492. func (x *RoutingRule) GetSourceGeoip() []*GeoIP {
  493. if x != nil {
  494. return x.SourceGeoip
  495. }
  496. return nil
  497. }
  498. func (x *RoutingRule) GetSourcePortList() *net.PortList {
  499. if x != nil {
  500. return x.SourcePortList
  501. }
  502. return nil
  503. }
  504. func (x *RoutingRule) GetUserEmail() []string {
  505. if x != nil {
  506. return x.UserEmail
  507. }
  508. return nil
  509. }
  510. func (x *RoutingRule) GetInboundTag() []string {
  511. if x != nil {
  512. return x.InboundTag
  513. }
  514. return nil
  515. }
  516. func (x *RoutingRule) GetProtocol() []string {
  517. if x != nil {
  518. return x.Protocol
  519. }
  520. return nil
  521. }
  522. func (x *RoutingRule) GetAttributes() map[string]string {
  523. if x != nil {
  524. return x.Attributes
  525. }
  526. return nil
  527. }
  528. func (x *RoutingRule) GetDomainMatcher() string {
  529. if x != nil {
  530. return x.DomainMatcher
  531. }
  532. return ""
  533. }
  534. type isRoutingRule_TargetTag interface {
  535. isRoutingRule_TargetTag()
  536. }
  537. type RoutingRule_Tag struct {
  538. // Tag of outbound that this rule is pointing to.
  539. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  540. }
  541. type RoutingRule_BalancingTag struct {
  542. // Tag of routing balancer.
  543. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  544. }
  545. func (*RoutingRule_Tag) isRoutingRule_TargetTag() {}
  546. func (*RoutingRule_BalancingTag) isRoutingRule_TargetTag() {}
  547. type BalancingRule struct {
  548. state protoimpl.MessageState
  549. sizeCache protoimpl.SizeCache
  550. unknownFields protoimpl.UnknownFields
  551. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  552. OutboundSelector []string `protobuf:"bytes,2,rep,name=outbound_selector,json=outboundSelector,proto3" json:"outbound_selector,omitempty"`
  553. Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"`
  554. StrategySettings *serial.TypedMessage `protobuf:"bytes,4,opt,name=strategy_settings,json=strategySettings,proto3" json:"strategy_settings,omitempty"`
  555. FallbackTag string `protobuf:"bytes,5,opt,name=fallback_tag,json=fallbackTag,proto3" json:"fallback_tag,omitempty"`
  556. }
  557. func (x *BalancingRule) Reset() {
  558. *x = BalancingRule{}
  559. mi := &file_app_router_config_proto_msgTypes[7]
  560. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  561. ms.StoreMessageInfo(mi)
  562. }
  563. func (x *BalancingRule) String() string {
  564. return protoimpl.X.MessageStringOf(x)
  565. }
  566. func (*BalancingRule) ProtoMessage() {}
  567. func (x *BalancingRule) ProtoReflect() protoreflect.Message {
  568. mi := &file_app_router_config_proto_msgTypes[7]
  569. if x != nil {
  570. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  571. if ms.LoadMessageInfo() == nil {
  572. ms.StoreMessageInfo(mi)
  573. }
  574. return ms
  575. }
  576. return mi.MessageOf(x)
  577. }
  578. // Deprecated: Use BalancingRule.ProtoReflect.Descriptor instead.
  579. func (*BalancingRule) Descriptor() ([]byte, []int) {
  580. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  581. }
  582. func (x *BalancingRule) GetTag() string {
  583. if x != nil {
  584. return x.Tag
  585. }
  586. return ""
  587. }
  588. func (x *BalancingRule) GetOutboundSelector() []string {
  589. if x != nil {
  590. return x.OutboundSelector
  591. }
  592. return nil
  593. }
  594. func (x *BalancingRule) GetStrategy() string {
  595. if x != nil {
  596. return x.Strategy
  597. }
  598. return ""
  599. }
  600. func (x *BalancingRule) GetStrategySettings() *serial.TypedMessage {
  601. if x != nil {
  602. return x.StrategySettings
  603. }
  604. return nil
  605. }
  606. func (x *BalancingRule) GetFallbackTag() string {
  607. if x != nil {
  608. return x.FallbackTag
  609. }
  610. return ""
  611. }
  612. type StrategyWeight struct {
  613. state protoimpl.MessageState
  614. sizeCache protoimpl.SizeCache
  615. unknownFields protoimpl.UnknownFields
  616. Regexp bool `protobuf:"varint,1,opt,name=regexp,proto3" json:"regexp,omitempty"`
  617. Match string `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
  618. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"`
  619. }
  620. func (x *StrategyWeight) Reset() {
  621. *x = StrategyWeight{}
  622. mi := &file_app_router_config_proto_msgTypes[8]
  623. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  624. ms.StoreMessageInfo(mi)
  625. }
  626. func (x *StrategyWeight) String() string {
  627. return protoimpl.X.MessageStringOf(x)
  628. }
  629. func (*StrategyWeight) ProtoMessage() {}
  630. func (x *StrategyWeight) ProtoReflect() protoreflect.Message {
  631. mi := &file_app_router_config_proto_msgTypes[8]
  632. if x != nil {
  633. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  634. if ms.LoadMessageInfo() == nil {
  635. ms.StoreMessageInfo(mi)
  636. }
  637. return ms
  638. }
  639. return mi.MessageOf(x)
  640. }
  641. // Deprecated: Use StrategyWeight.ProtoReflect.Descriptor instead.
  642. func (*StrategyWeight) Descriptor() ([]byte, []int) {
  643. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  644. }
  645. func (x *StrategyWeight) GetRegexp() bool {
  646. if x != nil {
  647. return x.Regexp
  648. }
  649. return false
  650. }
  651. func (x *StrategyWeight) GetMatch() string {
  652. if x != nil {
  653. return x.Match
  654. }
  655. return ""
  656. }
  657. func (x *StrategyWeight) GetValue() float32 {
  658. if x != nil {
  659. return x.Value
  660. }
  661. return 0
  662. }
  663. type StrategyLeastLoadConfig struct {
  664. state protoimpl.MessageState
  665. sizeCache protoimpl.SizeCache
  666. unknownFields protoimpl.UnknownFields
  667. // weight settings
  668. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  669. // RTT baselines for selecting, int64 values of time.Duration
  670. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  671. // expected nodes count to select
  672. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  673. // max acceptable rtt, filter away high delay nodes. default 0
  674. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  675. // acceptable failure rate
  676. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  677. }
  678. func (x *StrategyLeastLoadConfig) Reset() {
  679. *x = StrategyLeastLoadConfig{}
  680. mi := &file_app_router_config_proto_msgTypes[9]
  681. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  682. ms.StoreMessageInfo(mi)
  683. }
  684. func (x *StrategyLeastLoadConfig) String() string {
  685. return protoimpl.X.MessageStringOf(x)
  686. }
  687. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  688. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  689. mi := &file_app_router_config_proto_msgTypes[9]
  690. if x != nil {
  691. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  692. if ms.LoadMessageInfo() == nil {
  693. ms.StoreMessageInfo(mi)
  694. }
  695. return ms
  696. }
  697. return mi.MessageOf(x)
  698. }
  699. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  700. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  701. return file_app_router_config_proto_rawDescGZIP(), []int{9}
  702. }
  703. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  704. if x != nil {
  705. return x.Costs
  706. }
  707. return nil
  708. }
  709. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  710. if x != nil {
  711. return x.Baselines
  712. }
  713. return nil
  714. }
  715. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  716. if x != nil {
  717. return x.Expected
  718. }
  719. return 0
  720. }
  721. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  722. if x != nil {
  723. return x.MaxRTT
  724. }
  725. return 0
  726. }
  727. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  728. if x != nil {
  729. return x.Tolerance
  730. }
  731. return 0
  732. }
  733. type Config struct {
  734. state protoimpl.MessageState
  735. sizeCache protoimpl.SizeCache
  736. unknownFields protoimpl.UnknownFields
  737. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.app.router.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  738. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  739. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  740. }
  741. func (x *Config) Reset() {
  742. *x = Config{}
  743. mi := &file_app_router_config_proto_msgTypes[10]
  744. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  745. ms.StoreMessageInfo(mi)
  746. }
  747. func (x *Config) String() string {
  748. return protoimpl.X.MessageStringOf(x)
  749. }
  750. func (*Config) ProtoMessage() {}
  751. func (x *Config) ProtoReflect() protoreflect.Message {
  752. mi := &file_app_router_config_proto_msgTypes[10]
  753. if x != nil {
  754. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  755. if ms.LoadMessageInfo() == nil {
  756. ms.StoreMessageInfo(mi)
  757. }
  758. return ms
  759. }
  760. return mi.MessageOf(x)
  761. }
  762. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  763. func (*Config) Descriptor() ([]byte, []int) {
  764. return file_app_router_config_proto_rawDescGZIP(), []int{10}
  765. }
  766. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  767. if x != nil {
  768. return x.DomainStrategy
  769. }
  770. return Config_AsIs
  771. }
  772. func (x *Config) GetRule() []*RoutingRule {
  773. if x != nil {
  774. return x.Rule
  775. }
  776. return nil
  777. }
  778. func (x *Config) GetBalancingRule() []*BalancingRule {
  779. if x != nil {
  780. return x.BalancingRule
  781. }
  782. return nil
  783. }
  784. type Domain_Attribute struct {
  785. state protoimpl.MessageState
  786. sizeCache protoimpl.SizeCache
  787. unknownFields protoimpl.UnknownFields
  788. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  789. // Types that are assignable to TypedValue:
  790. //
  791. // *Domain_Attribute_BoolValue
  792. // *Domain_Attribute_IntValue
  793. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  794. }
  795. func (x *Domain_Attribute) Reset() {
  796. *x = Domain_Attribute{}
  797. mi := &file_app_router_config_proto_msgTypes[11]
  798. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  799. ms.StoreMessageInfo(mi)
  800. }
  801. func (x *Domain_Attribute) String() string {
  802. return protoimpl.X.MessageStringOf(x)
  803. }
  804. func (*Domain_Attribute) ProtoMessage() {}
  805. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  806. mi := &file_app_router_config_proto_msgTypes[11]
  807. if x != nil {
  808. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  809. if ms.LoadMessageInfo() == nil {
  810. ms.StoreMessageInfo(mi)
  811. }
  812. return ms
  813. }
  814. return mi.MessageOf(x)
  815. }
  816. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  817. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  818. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  819. }
  820. func (x *Domain_Attribute) GetKey() string {
  821. if x != nil {
  822. return x.Key
  823. }
  824. return ""
  825. }
  826. func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  827. if m != nil {
  828. return m.TypedValue
  829. }
  830. return nil
  831. }
  832. func (x *Domain_Attribute) GetBoolValue() bool {
  833. if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok {
  834. return x.BoolValue
  835. }
  836. return false
  837. }
  838. func (x *Domain_Attribute) GetIntValue() int64 {
  839. if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok {
  840. return x.IntValue
  841. }
  842. return 0
  843. }
  844. type isDomain_Attribute_TypedValue interface {
  845. isDomain_Attribute_TypedValue()
  846. }
  847. type Domain_Attribute_BoolValue struct {
  848. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  849. }
  850. type Domain_Attribute_IntValue struct {
  851. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  852. }
  853. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  854. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  855. var File_app_router_config_proto protoreflect.FileDescriptor
  856. var file_app_router_config_proto_rawDesc = []byte{
  857. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  858. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e,
  859. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  860. 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
  861. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63,
  862. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70,
  863. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  864. 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3,
  865. 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70,
  866. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  867. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  868. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76,
  869. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  870. 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x03,
  871. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  872. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74,
  873. 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  874. 0x74, 0x65, 0x1a, 0x6c, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12,
  875. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  876. 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  877. 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c,
  878. 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  879. 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75,
  880. 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  881. 0x22, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69,
  882. 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0a,
  883. 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75,
  884. 0x6c, 0x6c, 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02,
  885. 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06,
  886. 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72,
  887. 0x65, 0x66, 0x69, 0x78, 0x22, 0x7a, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a,
  888. 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  889. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65,
  890. 0x12, 0x29, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,
  891. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  892. 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72,
  893. 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01,
  894. 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68,
  895. 0x22, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a,
  896. 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78,
  897. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47,
  898. 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x5d, 0x0a, 0x07, 0x47,
  899. 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
  900. 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f,
  901. 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x64, 0x6f, 0x6d,
  902. 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79,
  903. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61,
  904. 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x3d, 0x0a, 0x0b, 0x47, 0x65,
  905. 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x6e, 0x74,
  906. 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  907. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69,
  908. 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0xce, 0x05, 0x0a, 0x0b, 0x52, 0x6f,
  909. 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67,
  910. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a,
  911. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c,
  912. 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
  913. 0x67, 0x54, 0x61, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x67,
  914. 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x12,
  915. 0x2f, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  916. 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  917. 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  918. 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32,
  919. 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  920. 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x36,
  921. 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28,
  922. 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  923. 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f,
  924. 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  925. 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  926. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f,
  927. 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x39, 0x0a, 0x0c,
  928. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03,
  929. 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  930. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72,
  931. 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63,
  932. 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28,
  933. 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  934. 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f,
  935. 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
  936. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09,
  937. 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
  938. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09,
  939. 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08,
  940. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,
  941. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x4c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72,
  942. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78,
  943. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52,
  944. 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
  945. 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72,
  946. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  947. 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  948. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x1a, 0x3d, 0x0a,
  949. 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  950. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
  951. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  952. 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0c, 0x0a, 0x0a,
  953. 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0xdc, 0x01, 0x0a, 0x0d, 0x42,
  954. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03,
  955. 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b,
  956. 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63,
  957. 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f,
  958. 0x75, 0x6e, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73,
  959. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73,
  960. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4d, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74,
  961. 0x65, 0x67, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01,
  962. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  963. 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73,
  964. 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53, 0x65,
  965. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  966. 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x61,
  967. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74, 0x72,
  968. 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72,
  969. 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x67,
  970. 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01,
  971. 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  972. 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
  973. 0xc0, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73,
  974. 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x05, 0x63,
  975. 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61,
  976. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72,
  977. 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73,
  978. 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18,
  979. 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73,
  980. 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01,
  981. 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06,
  982. 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61,
  983. 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63,
  984. 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e,
  985. 0x63, 0x65, 0x22, 0x9b, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4f, 0x0a,
  986. 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  987. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  988. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  989. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e,
  990. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x30,
  991. 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78,
  992. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52,
  993. 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65,
  994. 0x12, 0x45, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75,
  995. 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  996. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e,
  997. 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63,
  998. 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  999. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49,
  1000. 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01, 0x12, 0x10,
  1001. 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02,
  1002. 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03,
  1003. 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  1004. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75,
  1005. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d,
  1006. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa,
  1007. 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65,
  1008. 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1009. }
  1010. var (
  1011. file_app_router_config_proto_rawDescOnce sync.Once
  1012. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1013. )
  1014. func file_app_router_config_proto_rawDescGZIP() []byte {
  1015. file_app_router_config_proto_rawDescOnce.Do(func() {
  1016. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1017. })
  1018. return file_app_router_config_proto_rawDescData
  1019. }
  1020. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1021. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  1022. var file_app_router_config_proto_goTypes = []any{
  1023. (Domain_Type)(0), // 0: xray.app.router.Domain.Type
  1024. (Config_DomainStrategy)(0), // 1: xray.app.router.Config.DomainStrategy
  1025. (*Domain)(nil), // 2: xray.app.router.Domain
  1026. (*CIDR)(nil), // 3: xray.app.router.CIDR
  1027. (*GeoIP)(nil), // 4: xray.app.router.GeoIP
  1028. (*GeoIPList)(nil), // 5: xray.app.router.GeoIPList
  1029. (*GeoSite)(nil), // 6: xray.app.router.GeoSite
  1030. (*GeoSiteList)(nil), // 7: xray.app.router.GeoSiteList
  1031. (*RoutingRule)(nil), // 8: xray.app.router.RoutingRule
  1032. (*BalancingRule)(nil), // 9: xray.app.router.BalancingRule
  1033. (*StrategyWeight)(nil), // 10: xray.app.router.StrategyWeight
  1034. (*StrategyLeastLoadConfig)(nil), // 11: xray.app.router.StrategyLeastLoadConfig
  1035. (*Config)(nil), // 12: xray.app.router.Config
  1036. (*Domain_Attribute)(nil), // 13: xray.app.router.Domain.Attribute
  1037. nil, // 14: xray.app.router.RoutingRule.AttributesEntry
  1038. (*net.PortList)(nil), // 15: xray.common.net.PortList
  1039. (net.Network)(0), // 16: xray.common.net.Network
  1040. (*serial.TypedMessage)(nil), // 17: xray.common.serial.TypedMessage
  1041. }
  1042. var file_app_router_config_proto_depIdxs = []int32{
  1043. 0, // 0: xray.app.router.Domain.type:type_name -> xray.app.router.Domain.Type
  1044. 13, // 1: xray.app.router.Domain.attribute:type_name -> xray.app.router.Domain.Attribute
  1045. 3, // 2: xray.app.router.GeoIP.cidr:type_name -> xray.app.router.CIDR
  1046. 4, // 3: xray.app.router.GeoIPList.entry:type_name -> xray.app.router.GeoIP
  1047. 2, // 4: xray.app.router.GeoSite.domain:type_name -> xray.app.router.Domain
  1048. 6, // 5: xray.app.router.GeoSiteList.entry:type_name -> xray.app.router.GeoSite
  1049. 2, // 6: xray.app.router.RoutingRule.domain:type_name -> xray.app.router.Domain
  1050. 4, // 7: xray.app.router.RoutingRule.geoip:type_name -> xray.app.router.GeoIP
  1051. 15, // 8: xray.app.router.RoutingRule.port_list:type_name -> xray.common.net.PortList
  1052. 16, // 9: xray.app.router.RoutingRule.networks:type_name -> xray.common.net.Network
  1053. 4, // 10: xray.app.router.RoutingRule.source_geoip:type_name -> xray.app.router.GeoIP
  1054. 15, // 11: xray.app.router.RoutingRule.source_port_list:type_name -> xray.common.net.PortList
  1055. 14, // 12: xray.app.router.RoutingRule.attributes:type_name -> xray.app.router.RoutingRule.AttributesEntry
  1056. 17, // 13: xray.app.router.BalancingRule.strategy_settings:type_name -> xray.common.serial.TypedMessage
  1057. 10, // 14: xray.app.router.StrategyLeastLoadConfig.costs:type_name -> xray.app.router.StrategyWeight
  1058. 1, // 15: xray.app.router.Config.domain_strategy:type_name -> xray.app.router.Config.DomainStrategy
  1059. 8, // 16: xray.app.router.Config.rule:type_name -> xray.app.router.RoutingRule
  1060. 9, // 17: xray.app.router.Config.balancing_rule:type_name -> xray.app.router.BalancingRule
  1061. 18, // [18:18] is the sub-list for method output_type
  1062. 18, // [18:18] is the sub-list for method input_type
  1063. 18, // [18:18] is the sub-list for extension type_name
  1064. 18, // [18:18] is the sub-list for extension extendee
  1065. 0, // [0:18] is the sub-list for field type_name
  1066. }
  1067. func init() { file_app_router_config_proto_init() }
  1068. func file_app_router_config_proto_init() {
  1069. if File_app_router_config_proto != nil {
  1070. return
  1071. }
  1072. file_app_router_config_proto_msgTypes[6].OneofWrappers = []any{
  1073. (*RoutingRule_Tag)(nil),
  1074. (*RoutingRule_BalancingTag)(nil),
  1075. }
  1076. file_app_router_config_proto_msgTypes[11].OneofWrappers = []any{
  1077. (*Domain_Attribute_BoolValue)(nil),
  1078. (*Domain_Attribute_IntValue)(nil),
  1079. }
  1080. type x struct{}
  1081. out := protoimpl.TypeBuilder{
  1082. File: protoimpl.DescBuilder{
  1083. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1084. RawDescriptor: file_app_router_config_proto_rawDesc,
  1085. NumEnums: 2,
  1086. NumMessages: 13,
  1087. NumExtensions: 0,
  1088. NumServices: 0,
  1089. },
  1090. GoTypes: file_app_router_config_proto_goTypes,
  1091. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1092. EnumInfos: file_app_router_config_proto_enumTypes,
  1093. MessageInfos: file_app_router_config_proto_msgTypes,
  1094. }.Build()
  1095. File_app_router_config_proto = out.File
  1096. file_app_router_config_proto_rawDesc = nil
  1097. file_app_router_config_proto_goTypes = nil
  1098. file_app_router_config_proto_depIdxs = nil
  1099. }