config.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.29.4
  5. // source: app/dns/config.proto
  6. package dns
  7. import (
  8. router "github.com/xtls/xray-core/app/router"
  9. net "github.com/xtls/xray-core/common/net"
  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 DomainMatchingType int32
  22. const (
  23. DomainMatchingType_Full DomainMatchingType = 0
  24. DomainMatchingType_Subdomain DomainMatchingType = 1
  25. DomainMatchingType_Keyword DomainMatchingType = 2
  26. DomainMatchingType_Regex DomainMatchingType = 3
  27. )
  28. // Enum value maps for DomainMatchingType.
  29. var (
  30. DomainMatchingType_name = map[int32]string{
  31. 0: "Full",
  32. 1: "Subdomain",
  33. 2: "Keyword",
  34. 3: "Regex",
  35. }
  36. DomainMatchingType_value = map[string]int32{
  37. "Full": 0,
  38. "Subdomain": 1,
  39. "Keyword": 2,
  40. "Regex": 3,
  41. }
  42. )
  43. func (x DomainMatchingType) Enum() *DomainMatchingType {
  44. p := new(DomainMatchingType)
  45. *p = x
  46. return p
  47. }
  48. func (x DomainMatchingType) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  52. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  53. }
  54. func (DomainMatchingType) Type() protoreflect.EnumType {
  55. return &file_app_dns_config_proto_enumTypes[0]
  56. }
  57. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use DomainMatchingType.Descriptor instead.
  61. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  62. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  63. }
  64. type QueryStrategy int32
  65. const (
  66. QueryStrategy_USE_IP QueryStrategy = 0
  67. QueryStrategy_USE_IP4 QueryStrategy = 1
  68. QueryStrategy_USE_IP6 QueryStrategy = 2
  69. QueryStrategy_USE_SYS QueryStrategy = 3
  70. )
  71. // Enum value maps for QueryStrategy.
  72. var (
  73. QueryStrategy_name = map[int32]string{
  74. 0: "USE_IP",
  75. 1: "USE_IP4",
  76. 2: "USE_IP6",
  77. 3: "USE_SYS",
  78. }
  79. QueryStrategy_value = map[string]int32{
  80. "USE_IP": 0,
  81. "USE_IP4": 1,
  82. "USE_IP6": 2,
  83. "USE_SYS": 3,
  84. }
  85. )
  86. func (x QueryStrategy) Enum() *QueryStrategy {
  87. p := new(QueryStrategy)
  88. *p = x
  89. return p
  90. }
  91. func (x QueryStrategy) String() string {
  92. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  93. }
  94. func (QueryStrategy) Descriptor() protoreflect.EnumDescriptor {
  95. return file_app_dns_config_proto_enumTypes[1].Descriptor()
  96. }
  97. func (QueryStrategy) Type() protoreflect.EnumType {
  98. return &file_app_dns_config_proto_enumTypes[1]
  99. }
  100. func (x QueryStrategy) Number() protoreflect.EnumNumber {
  101. return protoreflect.EnumNumber(x)
  102. }
  103. // Deprecated: Use QueryStrategy.Descriptor instead.
  104. func (QueryStrategy) EnumDescriptor() ([]byte, []int) {
  105. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  106. }
  107. type NameServer struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  112. ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  113. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  114. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  115. ExpectedGeoip []*router.GeoIP `protobuf:"bytes,3,rep,name=expected_geoip,json=expectedGeoip,proto3" json:"expected_geoip,omitempty"`
  116. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  117. QueryStrategy QueryStrategy `protobuf:"varint,7,opt,name=query_strategy,json=queryStrategy,proto3,enum=xray.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  118. ActPrior bool `protobuf:"varint,8,opt,name=actPrior,proto3" json:"actPrior,omitempty"`
  119. Tag string `protobuf:"bytes,9,opt,name=tag,proto3" json:"tag,omitempty"`
  120. TimeoutMs uint64 `protobuf:"varint,10,opt,name=timeoutMs,proto3" json:"timeoutMs,omitempty"`
  121. DisableCache bool `protobuf:"varint,11,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  122. ServeStale bool `protobuf:"varint,15,opt,name=serveStale,proto3" json:"serveStale,omitempty"`
  123. ServeExpiredTTL *uint32 `protobuf:"varint,16,opt,name=serveExpiredTTL,proto3,oneof" json:"serveExpiredTTL,omitempty"`
  124. FinalQuery bool `protobuf:"varint,12,opt,name=finalQuery,proto3" json:"finalQuery,omitempty"`
  125. UnexpectedGeoip []*router.GeoIP `protobuf:"bytes,13,rep,name=unexpected_geoip,json=unexpectedGeoip,proto3" json:"unexpected_geoip,omitempty"`
  126. ActUnprior bool `protobuf:"varint,14,opt,name=actUnprior,proto3" json:"actUnprior,omitempty"`
  127. PolicyID uint32 `protobuf:"varint,17,opt,name=policyID,proto3" json:"policyID,omitempty"`
  128. }
  129. func (x *NameServer) Reset() {
  130. *x = NameServer{}
  131. mi := &file_app_dns_config_proto_msgTypes[0]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. func (x *NameServer) String() string {
  136. return protoimpl.X.MessageStringOf(x)
  137. }
  138. func (*NameServer) ProtoMessage() {}
  139. func (x *NameServer) ProtoReflect() protoreflect.Message {
  140. mi := &file_app_dns_config_proto_msgTypes[0]
  141. if x != nil {
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. if ms.LoadMessageInfo() == nil {
  144. ms.StoreMessageInfo(mi)
  145. }
  146. return ms
  147. }
  148. return mi.MessageOf(x)
  149. }
  150. // Deprecated: Use NameServer.ProtoReflect.Descriptor instead.
  151. func (*NameServer) Descriptor() ([]byte, []int) {
  152. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  153. }
  154. func (x *NameServer) GetAddress() *net.Endpoint {
  155. if x != nil {
  156. return x.Address
  157. }
  158. return nil
  159. }
  160. func (x *NameServer) GetClientIp() []byte {
  161. if x != nil {
  162. return x.ClientIp
  163. }
  164. return nil
  165. }
  166. func (x *NameServer) GetSkipFallback() bool {
  167. if x != nil {
  168. return x.SkipFallback
  169. }
  170. return false
  171. }
  172. func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDomain {
  173. if x != nil {
  174. return x.PrioritizedDomain
  175. }
  176. return nil
  177. }
  178. func (x *NameServer) GetExpectedGeoip() []*router.GeoIP {
  179. if x != nil {
  180. return x.ExpectedGeoip
  181. }
  182. return nil
  183. }
  184. func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule {
  185. if x != nil {
  186. return x.OriginalRules
  187. }
  188. return nil
  189. }
  190. func (x *NameServer) GetQueryStrategy() QueryStrategy {
  191. if x != nil {
  192. return x.QueryStrategy
  193. }
  194. return QueryStrategy_USE_IP
  195. }
  196. func (x *NameServer) GetActPrior() bool {
  197. if x != nil {
  198. return x.ActPrior
  199. }
  200. return false
  201. }
  202. func (x *NameServer) GetTag() string {
  203. if x != nil {
  204. return x.Tag
  205. }
  206. return ""
  207. }
  208. func (x *NameServer) GetTimeoutMs() uint64 {
  209. if x != nil {
  210. return x.TimeoutMs
  211. }
  212. return 0
  213. }
  214. func (x *NameServer) GetDisableCache() bool {
  215. if x != nil {
  216. return x.DisableCache
  217. }
  218. return false
  219. }
  220. func (x *NameServer) GetServeStale() bool {
  221. if x != nil {
  222. return x.ServeStale
  223. }
  224. return false
  225. }
  226. func (x *NameServer) GetServeExpiredTTL() uint32 {
  227. if x != nil && x.ServeExpiredTTL != nil {
  228. return *x.ServeExpiredTTL
  229. }
  230. return 0
  231. }
  232. func (x *NameServer) GetFinalQuery() bool {
  233. if x != nil {
  234. return x.FinalQuery
  235. }
  236. return false
  237. }
  238. func (x *NameServer) GetUnexpectedGeoip() []*router.GeoIP {
  239. if x != nil {
  240. return x.UnexpectedGeoip
  241. }
  242. return nil
  243. }
  244. func (x *NameServer) GetActUnprior() bool {
  245. if x != nil {
  246. return x.ActUnprior
  247. }
  248. return false
  249. }
  250. func (x *NameServer) GetPolicyID() uint32 {
  251. if x != nil {
  252. return x.PolicyID
  253. }
  254. return 0
  255. }
  256. type Config struct {
  257. state protoimpl.MessageState
  258. sizeCache protoimpl.SizeCache
  259. unknownFields protoimpl.UnknownFields
  260. // NameServer list used by this DNS client.
  261. // A special value 'localhost' as a domain address can be set to use DNS on local system.
  262. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  263. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  264. // (IPv6).
  265. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  266. StaticHosts []*Config_HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  267. // Tag is the inbound tag of DNS client.
  268. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  269. // DisableCache disables DNS cache
  270. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  271. ServeStale bool `protobuf:"varint,12,opt,name=serveStale,proto3" json:"serveStale,omitempty"`
  272. ServeExpiredTTL uint32 `protobuf:"varint,13,opt,name=serveExpiredTTL,proto3" json:"serveExpiredTTL,omitempty"`
  273. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=xray.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  274. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  275. DisableFallbackIfMatch bool `protobuf:"varint,11,opt,name=disableFallbackIfMatch,proto3" json:"disableFallbackIfMatch,omitempty"`
  276. EnableParallelQuery bool `protobuf:"varint,14,opt,name=enableParallelQuery,proto3" json:"enableParallelQuery,omitempty"`
  277. }
  278. func (x *Config) Reset() {
  279. *x = Config{}
  280. mi := &file_app_dns_config_proto_msgTypes[1]
  281. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  282. ms.StoreMessageInfo(mi)
  283. }
  284. func (x *Config) String() string {
  285. return protoimpl.X.MessageStringOf(x)
  286. }
  287. func (*Config) ProtoMessage() {}
  288. func (x *Config) ProtoReflect() protoreflect.Message {
  289. mi := &file_app_dns_config_proto_msgTypes[1]
  290. if x != nil {
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. if ms.LoadMessageInfo() == nil {
  293. ms.StoreMessageInfo(mi)
  294. }
  295. return ms
  296. }
  297. return mi.MessageOf(x)
  298. }
  299. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  300. func (*Config) Descriptor() ([]byte, []int) {
  301. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  302. }
  303. func (x *Config) GetNameServer() []*NameServer {
  304. if x != nil {
  305. return x.NameServer
  306. }
  307. return nil
  308. }
  309. func (x *Config) GetClientIp() []byte {
  310. if x != nil {
  311. return x.ClientIp
  312. }
  313. return nil
  314. }
  315. func (x *Config) GetStaticHosts() []*Config_HostMapping {
  316. if x != nil {
  317. return x.StaticHosts
  318. }
  319. return nil
  320. }
  321. func (x *Config) GetTag() string {
  322. if x != nil {
  323. return x.Tag
  324. }
  325. return ""
  326. }
  327. func (x *Config) GetDisableCache() bool {
  328. if x != nil {
  329. return x.DisableCache
  330. }
  331. return false
  332. }
  333. func (x *Config) GetServeStale() bool {
  334. if x != nil {
  335. return x.ServeStale
  336. }
  337. return false
  338. }
  339. func (x *Config) GetServeExpiredTTL() uint32 {
  340. if x != nil {
  341. return x.ServeExpiredTTL
  342. }
  343. return 0
  344. }
  345. func (x *Config) GetQueryStrategy() QueryStrategy {
  346. if x != nil {
  347. return x.QueryStrategy
  348. }
  349. return QueryStrategy_USE_IP
  350. }
  351. func (x *Config) GetDisableFallback() bool {
  352. if x != nil {
  353. return x.DisableFallback
  354. }
  355. return false
  356. }
  357. func (x *Config) GetDisableFallbackIfMatch() bool {
  358. if x != nil {
  359. return x.DisableFallbackIfMatch
  360. }
  361. return false
  362. }
  363. func (x *Config) GetEnableParallelQuery() bool {
  364. if x != nil {
  365. return x.EnableParallelQuery
  366. }
  367. return false
  368. }
  369. type NameServer_PriorityDomain struct {
  370. state protoimpl.MessageState
  371. sizeCache protoimpl.SizeCache
  372. unknownFields protoimpl.UnknownFields
  373. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.dns.DomainMatchingType" json:"type,omitempty"`
  374. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  375. }
  376. func (x *NameServer_PriorityDomain) Reset() {
  377. *x = NameServer_PriorityDomain{}
  378. mi := &file_app_dns_config_proto_msgTypes[2]
  379. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  380. ms.StoreMessageInfo(mi)
  381. }
  382. func (x *NameServer_PriorityDomain) String() string {
  383. return protoimpl.X.MessageStringOf(x)
  384. }
  385. func (*NameServer_PriorityDomain) ProtoMessage() {}
  386. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  387. mi := &file_app_dns_config_proto_msgTypes[2]
  388. if x != nil {
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. if ms.LoadMessageInfo() == nil {
  391. ms.StoreMessageInfo(mi)
  392. }
  393. return ms
  394. }
  395. return mi.MessageOf(x)
  396. }
  397. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  398. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  399. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  400. }
  401. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  402. if x != nil {
  403. return x.Type
  404. }
  405. return DomainMatchingType_Full
  406. }
  407. func (x *NameServer_PriorityDomain) GetDomain() string {
  408. if x != nil {
  409. return x.Domain
  410. }
  411. return ""
  412. }
  413. type NameServer_OriginalRule struct {
  414. state protoimpl.MessageState
  415. sizeCache protoimpl.SizeCache
  416. unknownFields protoimpl.UnknownFields
  417. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  418. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  419. }
  420. func (x *NameServer_OriginalRule) Reset() {
  421. *x = NameServer_OriginalRule{}
  422. mi := &file_app_dns_config_proto_msgTypes[3]
  423. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  424. ms.StoreMessageInfo(mi)
  425. }
  426. func (x *NameServer_OriginalRule) String() string {
  427. return protoimpl.X.MessageStringOf(x)
  428. }
  429. func (*NameServer_OriginalRule) ProtoMessage() {}
  430. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  431. mi := &file_app_dns_config_proto_msgTypes[3]
  432. if x != nil {
  433. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  434. if ms.LoadMessageInfo() == nil {
  435. ms.StoreMessageInfo(mi)
  436. }
  437. return ms
  438. }
  439. return mi.MessageOf(x)
  440. }
  441. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  442. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  443. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  444. }
  445. func (x *NameServer_OriginalRule) GetRule() string {
  446. if x != nil {
  447. return x.Rule
  448. }
  449. return ""
  450. }
  451. func (x *NameServer_OriginalRule) GetSize() uint32 {
  452. if x != nil {
  453. return x.Size
  454. }
  455. return 0
  456. }
  457. type Config_HostMapping struct {
  458. state protoimpl.MessageState
  459. sizeCache protoimpl.SizeCache
  460. unknownFields protoimpl.UnknownFields
  461. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.dns.DomainMatchingType" json:"type,omitempty"`
  462. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  463. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  464. // ProxiedDomain indicates the mapped domain has the same IP address on this
  465. // domain. Xray will use this domain for IP queries.
  466. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  467. }
  468. func (x *Config_HostMapping) Reset() {
  469. *x = Config_HostMapping{}
  470. mi := &file_app_dns_config_proto_msgTypes[4]
  471. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  472. ms.StoreMessageInfo(mi)
  473. }
  474. func (x *Config_HostMapping) String() string {
  475. return protoimpl.X.MessageStringOf(x)
  476. }
  477. func (*Config_HostMapping) ProtoMessage() {}
  478. func (x *Config_HostMapping) ProtoReflect() protoreflect.Message {
  479. mi := &file_app_dns_config_proto_msgTypes[4]
  480. if x != nil {
  481. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  482. if ms.LoadMessageInfo() == nil {
  483. ms.StoreMessageInfo(mi)
  484. }
  485. return ms
  486. }
  487. return mi.MessageOf(x)
  488. }
  489. // Deprecated: Use Config_HostMapping.ProtoReflect.Descriptor instead.
  490. func (*Config_HostMapping) Descriptor() ([]byte, []int) {
  491. return file_app_dns_config_proto_rawDescGZIP(), []int{1, 0}
  492. }
  493. func (x *Config_HostMapping) GetType() DomainMatchingType {
  494. if x != nil {
  495. return x.Type
  496. }
  497. return DomainMatchingType_Full
  498. }
  499. func (x *Config_HostMapping) GetDomain() string {
  500. if x != nil {
  501. return x.Domain
  502. }
  503. return ""
  504. }
  505. func (x *Config_HostMapping) GetIp() [][]byte {
  506. if x != nil {
  507. return x.Ip
  508. }
  509. return nil
  510. }
  511. func (x *Config_HostMapping) GetProxiedDomain() string {
  512. if x != nil {
  513. return x.ProxiedDomain
  514. }
  515. return ""
  516. }
  517. var File_app_dns_config_proto protoreflect.FileDescriptor
  518. var file_app_dns_config_proto_rawDesc = []byte{
  519. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  520. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  521. 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  522. 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  523. 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63,
  524. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb5, 0x07, 0x0a, 0x0a,
  525. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x64,
  526. 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72,
  527. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e,
  528. 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
  529. 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01,
  530. 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x22, 0x0a, 0x0c,
  531. 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01,
  532. 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  533. 0x12, 0x56, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x5f,
  534. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78,
  535. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65,
  536. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44,
  537. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a,
  538. 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3d, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x65,
  539. 0x63, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
  540. 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  541. 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74,
  542. 0x65, 0x64, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x4c, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69,
  543. 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  544. 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e,
  545. 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e,
  546. 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  547. 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73,
  548. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
  549. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65,
  550. 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72,
  551. 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74,
  552. 0x50, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, 0x74,
  553. 0x50, 0x72, 0x69, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x09, 0x20, 0x01,
  554. 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6f,
  555. 0x75, 0x74, 0x4d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65,
  556. 0x6f, 0x75, 0x74, 0x4d, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
  557. 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73,
  558. 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72,
  559. 0x76, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73,
  560. 0x65, 0x72, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x0f, 0x73, 0x65, 0x72,
  561. 0x76, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x54, 0x4c, 0x18, 0x10, 0x20, 0x01,
  562. 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72,
  563. 0x65, 0x64, 0x54, 0x54, 0x4c, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6e, 0x61,
  564. 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x69,
  565. 0x6e, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x41, 0x0a, 0x10, 0x75, 0x6e, 0x65, 0x78,
  566. 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0d, 0x20, 0x03,
  567. 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  568. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0f, 0x75, 0x6e, 0x65, 0x78,
  569. 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x61,
  570. 0x63, 0x74, 0x55, 0x6e, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52,
  571. 0x0a, 0x61, 0x63, 0x74, 0x55, 0x6e, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70,
  572. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70,
  573. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x1a, 0x5e, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72,
  574. 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70,
  575. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  576. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74,
  577. 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  578. 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  579. 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69,
  580. 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18,
  581. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73,
  582. 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x42,
  583. 0x12, 0x0a, 0x10, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64,
  584. 0x54, 0x54, 0x4c, 0x22, 0x98, 0x05, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x39,
  585. 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20,
  586. 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64,
  587. 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e,
  588. 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69,
  589. 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c,
  590. 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63,
  591. 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78,
  592. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66,
  593. 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b,
  594. 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74,
  595. 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a,
  596. 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08, 0x20,
  597. 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68,
  598. 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x18,
  599. 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6c,
  600. 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65,
  601. 0x64, 0x54, 0x54, 0x4c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76,
  602. 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x54, 0x4c, 0x12, 0x42, 0x0a, 0x0e, 0x71,
  603. 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20,
  604. 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64,
  605. 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  606. 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,
  607. 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  608. 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  609. 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x36, 0x0a, 0x16, 0x64, 0x69, 0x73,
  610. 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61,
  611. 0x74, 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62,
  612. 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63,
  613. 0x68, 0x12, 0x30, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6c,
  614. 0x6c, 0x65, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13,
  615. 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x51, 0x75,
  616. 0x65, 0x72, 0x79, 0x1a, 0x92, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70,
  617. 0x69, 0x6e, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  618. 0x0e, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  619. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54,
  620. 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d,
  621. 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  622. 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69,
  623. 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d,
  624. 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69,
  625. 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x2a, 0x45,
  626. 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
  627. 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d,
  628. 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a,
  629. 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65,
  630. 0x67, 0x65, 0x78, 0x10, 0x03, 0x2a, 0x42, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74,
  631. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50,
  632. 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12,
  633. 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07,
  634. 0x55, 0x53, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x10, 0x03, 0x42, 0x46, 0x0a, 0x10, 0x63, 0x6f, 0x6d,
  635. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a,
  636. 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  637. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64,
  638. 0x6e, 0x73, 0xaa, 0x02, 0x0c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e,
  639. 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  640. }
  641. var (
  642. file_app_dns_config_proto_rawDescOnce sync.Once
  643. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  644. )
  645. func file_app_dns_config_proto_rawDescGZIP() []byte {
  646. file_app_dns_config_proto_rawDescOnce.Do(func() {
  647. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  648. })
  649. return file_app_dns_config_proto_rawDescData
  650. }
  651. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  652. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  653. var file_app_dns_config_proto_goTypes = []any{
  654. (DomainMatchingType)(0), // 0: xray.app.dns.DomainMatchingType
  655. (QueryStrategy)(0), // 1: xray.app.dns.QueryStrategy
  656. (*NameServer)(nil), // 2: xray.app.dns.NameServer
  657. (*Config)(nil), // 3: xray.app.dns.Config
  658. (*NameServer_PriorityDomain)(nil), // 4: xray.app.dns.NameServer.PriorityDomain
  659. (*NameServer_OriginalRule)(nil), // 5: xray.app.dns.NameServer.OriginalRule
  660. (*Config_HostMapping)(nil), // 6: xray.app.dns.Config.HostMapping
  661. (*net.Endpoint)(nil), // 7: xray.common.net.Endpoint
  662. (*router.GeoIP)(nil), // 8: xray.app.router.GeoIP
  663. }
  664. var file_app_dns_config_proto_depIdxs = []int32{
  665. 7, // 0: xray.app.dns.NameServer.address:type_name -> xray.common.net.Endpoint
  666. 4, // 1: xray.app.dns.NameServer.prioritized_domain:type_name -> xray.app.dns.NameServer.PriorityDomain
  667. 8, // 2: xray.app.dns.NameServer.expected_geoip:type_name -> xray.app.router.GeoIP
  668. 5, // 3: xray.app.dns.NameServer.original_rules:type_name -> xray.app.dns.NameServer.OriginalRule
  669. 1, // 4: xray.app.dns.NameServer.query_strategy:type_name -> xray.app.dns.QueryStrategy
  670. 8, // 5: xray.app.dns.NameServer.unexpected_geoip:type_name -> xray.app.router.GeoIP
  671. 2, // 6: xray.app.dns.Config.name_server:type_name -> xray.app.dns.NameServer
  672. 6, // 7: xray.app.dns.Config.static_hosts:type_name -> xray.app.dns.Config.HostMapping
  673. 1, // 8: xray.app.dns.Config.query_strategy:type_name -> xray.app.dns.QueryStrategy
  674. 0, // 9: xray.app.dns.NameServer.PriorityDomain.type:type_name -> xray.app.dns.DomainMatchingType
  675. 0, // 10: xray.app.dns.Config.HostMapping.type:type_name -> xray.app.dns.DomainMatchingType
  676. 11, // [11:11] is the sub-list for method output_type
  677. 11, // [11:11] is the sub-list for method input_type
  678. 11, // [11:11] is the sub-list for extension type_name
  679. 11, // [11:11] is the sub-list for extension extendee
  680. 0, // [0:11] is the sub-list for field type_name
  681. }
  682. func init() { file_app_dns_config_proto_init() }
  683. func file_app_dns_config_proto_init() {
  684. if File_app_dns_config_proto != nil {
  685. return
  686. }
  687. file_app_dns_config_proto_msgTypes[0].OneofWrappers = []any{}
  688. type x struct{}
  689. out := protoimpl.TypeBuilder{
  690. File: protoimpl.DescBuilder{
  691. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  692. RawDescriptor: file_app_dns_config_proto_rawDesc,
  693. NumEnums: 2,
  694. NumMessages: 5,
  695. NumExtensions: 0,
  696. NumServices: 0,
  697. },
  698. GoTypes: file_app_dns_config_proto_goTypes,
  699. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  700. EnumInfos: file_app_dns_config_proto_enumTypes,
  701. MessageInfos: file_app_dns_config_proto_msgTypes,
  702. }.Build()
  703. File_app_dns_config_proto = out.File
  704. file_app_dns_config_proto_rawDesc = nil
  705. file_app_dns_config_proto_goTypes = nil
  706. file_app_dns_config_proto_depIdxs = nil
  707. }