config.pb.go 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: app/dns/config.proto
  6. package dns
  7. import (
  8. routercommon "github.com/v2fly/v2ray-core/v4/app/router/routercommon"
  9. net "github.com/v2fly/v2ray-core/v4/common/net"
  10. _ "github.com/v2fly/v2ray-core/v4/common/protoext"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type DomainMatchingType int32
  23. const (
  24. DomainMatchingType_Full DomainMatchingType = 0
  25. DomainMatchingType_Subdomain DomainMatchingType = 1
  26. DomainMatchingType_Keyword DomainMatchingType = 2
  27. DomainMatchingType_Regex DomainMatchingType = 3
  28. )
  29. // Enum value maps for DomainMatchingType.
  30. var (
  31. DomainMatchingType_name = map[int32]string{
  32. 0: "Full",
  33. 1: "Subdomain",
  34. 2: "Keyword",
  35. 3: "Regex",
  36. }
  37. DomainMatchingType_value = map[string]int32{
  38. "Full": 0,
  39. "Subdomain": 1,
  40. "Keyword": 2,
  41. "Regex": 3,
  42. }
  43. )
  44. func (x DomainMatchingType) Enum() *DomainMatchingType {
  45. p := new(DomainMatchingType)
  46. *p = x
  47. return p
  48. }
  49. func (x DomainMatchingType) String() string {
  50. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  51. }
  52. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  53. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  54. }
  55. func (DomainMatchingType) Type() protoreflect.EnumType {
  56. return &file_app_dns_config_proto_enumTypes[0]
  57. }
  58. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  59. return protoreflect.EnumNumber(x)
  60. }
  61. // Deprecated: Use DomainMatchingType.Descriptor instead.
  62. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  63. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  64. }
  65. type QueryStrategy int32
  66. const (
  67. QueryStrategy_USE_IP QueryStrategy = 0
  68. QueryStrategy_USE_IP4 QueryStrategy = 1
  69. QueryStrategy_USE_IP6 QueryStrategy = 2
  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. }
  78. QueryStrategy_value = map[string]int32{
  79. "USE_IP": 0,
  80. "USE_IP4": 1,
  81. "USE_IP6": 2,
  82. }
  83. )
  84. func (x QueryStrategy) Enum() *QueryStrategy {
  85. p := new(QueryStrategy)
  86. *p = x
  87. return p
  88. }
  89. func (x QueryStrategy) String() string {
  90. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  91. }
  92. func (QueryStrategy) Descriptor() protoreflect.EnumDescriptor {
  93. return file_app_dns_config_proto_enumTypes[1].Descriptor()
  94. }
  95. func (QueryStrategy) Type() protoreflect.EnumType {
  96. return &file_app_dns_config_proto_enumTypes[1]
  97. }
  98. func (x QueryStrategy) Number() protoreflect.EnumNumber {
  99. return protoreflect.EnumNumber(x)
  100. }
  101. // Deprecated: Use QueryStrategy.Descriptor instead.
  102. func (QueryStrategy) EnumDescriptor() ([]byte, []int) {
  103. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  104. }
  105. type NameServer struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  110. ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  111. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  112. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  113. Geoip []*routercommon.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  114. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  115. }
  116. func (x *NameServer) Reset() {
  117. *x = NameServer{}
  118. if protoimpl.UnsafeEnabled {
  119. mi := &file_app_dns_config_proto_msgTypes[0]
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. ms.StoreMessageInfo(mi)
  122. }
  123. }
  124. func (x *NameServer) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*NameServer) ProtoMessage() {}
  128. func (x *NameServer) ProtoReflect() protoreflect.Message {
  129. mi := &file_app_dns_config_proto_msgTypes[0]
  130. if protoimpl.UnsafeEnabled && x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use NameServer.ProtoReflect.Descriptor instead.
  140. func (*NameServer) Descriptor() ([]byte, []int) {
  141. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  142. }
  143. func (x *NameServer) GetAddress() *net.Endpoint {
  144. if x != nil {
  145. return x.Address
  146. }
  147. return nil
  148. }
  149. func (x *NameServer) GetClientIp() []byte {
  150. if x != nil {
  151. return x.ClientIp
  152. }
  153. return nil
  154. }
  155. func (x *NameServer) GetSkipFallback() bool {
  156. if x != nil {
  157. return x.SkipFallback
  158. }
  159. return false
  160. }
  161. func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDomain {
  162. if x != nil {
  163. return x.PrioritizedDomain
  164. }
  165. return nil
  166. }
  167. func (x *NameServer) GetGeoip() []*routercommon.GeoIP {
  168. if x != nil {
  169. return x.Geoip
  170. }
  171. return nil
  172. }
  173. func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule {
  174. if x != nil {
  175. return x.OriginalRules
  176. }
  177. return nil
  178. }
  179. type HostMapping struct {
  180. state protoimpl.MessageState
  181. sizeCache protoimpl.SizeCache
  182. unknownFields protoimpl.UnknownFields
  183. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  184. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  185. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  186. // ProxiedDomain indicates the mapped domain has the same IP address on this
  187. // domain. V2Ray will use this domain for IP queries.
  188. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  189. }
  190. func (x *HostMapping) Reset() {
  191. *x = HostMapping{}
  192. if protoimpl.UnsafeEnabled {
  193. mi := &file_app_dns_config_proto_msgTypes[1]
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. ms.StoreMessageInfo(mi)
  196. }
  197. }
  198. func (x *HostMapping) String() string {
  199. return protoimpl.X.MessageStringOf(x)
  200. }
  201. func (*HostMapping) ProtoMessage() {}
  202. func (x *HostMapping) ProtoReflect() protoreflect.Message {
  203. mi := &file_app_dns_config_proto_msgTypes[1]
  204. if protoimpl.UnsafeEnabled && x != nil {
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. if ms.LoadMessageInfo() == nil {
  207. ms.StoreMessageInfo(mi)
  208. }
  209. return ms
  210. }
  211. return mi.MessageOf(x)
  212. }
  213. // Deprecated: Use HostMapping.ProtoReflect.Descriptor instead.
  214. func (*HostMapping) Descriptor() ([]byte, []int) {
  215. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  216. }
  217. func (x *HostMapping) GetType() DomainMatchingType {
  218. if x != nil {
  219. return x.Type
  220. }
  221. return DomainMatchingType_Full
  222. }
  223. func (x *HostMapping) GetDomain() string {
  224. if x != nil {
  225. return x.Domain
  226. }
  227. return ""
  228. }
  229. func (x *HostMapping) GetIp() [][]byte {
  230. if x != nil {
  231. return x.Ip
  232. }
  233. return nil
  234. }
  235. func (x *HostMapping) GetProxiedDomain() string {
  236. if x != nil {
  237. return x.ProxiedDomain
  238. }
  239. return ""
  240. }
  241. type Config struct {
  242. state protoimpl.MessageState
  243. sizeCache protoimpl.SizeCache
  244. unknownFields protoimpl.UnknownFields
  245. // Nameservers used by this DNS. Only traditional UDP servers are support at
  246. // the moment. A special value 'localhost' as a domain address can be set to
  247. // use DNS on local system.
  248. //
  249. // Deprecated: Do not use.
  250. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  251. // NameServer list used by this DNS client.
  252. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  253. // Static hosts. Domain to IP.
  254. // Deprecated. Use static_hosts.
  255. //
  256. // Deprecated: Do not use.
  257. Hosts map[string]*net.IPOrDomain `protobuf:"bytes,2,rep,name=Hosts,proto3" json:"Hosts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  258. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  259. // (IPv6).
  260. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  261. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  262. // Tag is the inbound tag of DNS client.
  263. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  264. // DisableCache disables DNS cache
  265. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  266. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  267. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  268. }
  269. func (x *Config) Reset() {
  270. *x = Config{}
  271. if protoimpl.UnsafeEnabled {
  272. mi := &file_app_dns_config_proto_msgTypes[2]
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. ms.StoreMessageInfo(mi)
  275. }
  276. }
  277. func (x *Config) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*Config) ProtoMessage() {}
  281. func (x *Config) ProtoReflect() protoreflect.Message {
  282. mi := &file_app_dns_config_proto_msgTypes[2]
  283. if protoimpl.UnsafeEnabled && x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  293. func (*Config) Descriptor() ([]byte, []int) {
  294. return file_app_dns_config_proto_rawDescGZIP(), []int{2}
  295. }
  296. // Deprecated: Do not use.
  297. func (x *Config) GetNameServers() []*net.Endpoint {
  298. if x != nil {
  299. return x.NameServers
  300. }
  301. return nil
  302. }
  303. func (x *Config) GetNameServer() []*NameServer {
  304. if x != nil {
  305. return x.NameServer
  306. }
  307. return nil
  308. }
  309. // Deprecated: Do not use.
  310. func (x *Config) GetHosts() map[string]*net.IPOrDomain {
  311. if x != nil {
  312. return x.Hosts
  313. }
  314. return nil
  315. }
  316. func (x *Config) GetClientIp() []byte {
  317. if x != nil {
  318. return x.ClientIp
  319. }
  320. return nil
  321. }
  322. func (x *Config) GetStaticHosts() []*HostMapping {
  323. if x != nil {
  324. return x.StaticHosts
  325. }
  326. return nil
  327. }
  328. func (x *Config) GetTag() string {
  329. if x != nil {
  330. return x.Tag
  331. }
  332. return ""
  333. }
  334. func (x *Config) GetDisableCache() bool {
  335. if x != nil {
  336. return x.DisableCache
  337. }
  338. return false
  339. }
  340. func (x *Config) GetQueryStrategy() QueryStrategy {
  341. if x != nil {
  342. return x.QueryStrategy
  343. }
  344. return QueryStrategy_USE_IP
  345. }
  346. func (x *Config) GetDisableFallback() bool {
  347. if x != nil {
  348. return x.DisableFallback
  349. }
  350. return false
  351. }
  352. type SimplifiedConfig struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. // Nameservers used by this DNS. Only traditional UDP servers are support at
  357. // the moment. A special value 'localhost' as a domain address can be set to
  358. // use DNS on local system.
  359. //
  360. // Deprecated: Do not use.
  361. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  362. // NameServer list used by this DNS client.
  363. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  364. // Static hosts. Domain to IP.
  365. // Deprecated. Use static_hosts.
  366. //
  367. // Deprecated: Do not use.
  368. Hosts map[string]*net.IPOrDomain `protobuf:"bytes,2,rep,name=Hosts,proto3" json:"Hosts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  369. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  370. // (IPv6).
  371. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  372. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  373. // Tag is the inbound tag of DNS client.
  374. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  375. // DisableCache disables DNS cache
  376. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  377. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  378. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  379. }
  380. func (x *SimplifiedConfig) Reset() {
  381. *x = SimplifiedConfig{}
  382. if protoimpl.UnsafeEnabled {
  383. mi := &file_app_dns_config_proto_msgTypes[3]
  384. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  385. ms.StoreMessageInfo(mi)
  386. }
  387. }
  388. func (x *SimplifiedConfig) String() string {
  389. return protoimpl.X.MessageStringOf(x)
  390. }
  391. func (*SimplifiedConfig) ProtoMessage() {}
  392. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  393. mi := &file_app_dns_config_proto_msgTypes[3]
  394. if protoimpl.UnsafeEnabled && x != nil {
  395. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  396. if ms.LoadMessageInfo() == nil {
  397. ms.StoreMessageInfo(mi)
  398. }
  399. return ms
  400. }
  401. return mi.MessageOf(x)
  402. }
  403. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  404. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  405. return file_app_dns_config_proto_rawDescGZIP(), []int{3}
  406. }
  407. // Deprecated: Do not use.
  408. func (x *SimplifiedConfig) GetNameServers() []*net.Endpoint {
  409. if x != nil {
  410. return x.NameServers
  411. }
  412. return nil
  413. }
  414. func (x *SimplifiedConfig) GetNameServer() []*NameServer {
  415. if x != nil {
  416. return x.NameServer
  417. }
  418. return nil
  419. }
  420. // Deprecated: Do not use.
  421. func (x *SimplifiedConfig) GetHosts() map[string]*net.IPOrDomain {
  422. if x != nil {
  423. return x.Hosts
  424. }
  425. return nil
  426. }
  427. func (x *SimplifiedConfig) GetClientIp() []byte {
  428. if x != nil {
  429. return x.ClientIp
  430. }
  431. return nil
  432. }
  433. func (x *SimplifiedConfig) GetStaticHosts() []*HostMapping {
  434. if x != nil {
  435. return x.StaticHosts
  436. }
  437. return nil
  438. }
  439. func (x *SimplifiedConfig) GetTag() string {
  440. if x != nil {
  441. return x.Tag
  442. }
  443. return ""
  444. }
  445. func (x *SimplifiedConfig) GetDisableCache() bool {
  446. if x != nil {
  447. return x.DisableCache
  448. }
  449. return false
  450. }
  451. func (x *SimplifiedConfig) GetQueryStrategy() QueryStrategy {
  452. if x != nil {
  453. return x.QueryStrategy
  454. }
  455. return QueryStrategy_USE_IP
  456. }
  457. func (x *SimplifiedConfig) GetDisableFallback() bool {
  458. if x != nil {
  459. return x.DisableFallback
  460. }
  461. return false
  462. }
  463. type NameServer_PriorityDomain struct {
  464. state protoimpl.MessageState
  465. sizeCache protoimpl.SizeCache
  466. unknownFields protoimpl.UnknownFields
  467. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  468. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  469. }
  470. func (x *NameServer_PriorityDomain) Reset() {
  471. *x = NameServer_PriorityDomain{}
  472. if protoimpl.UnsafeEnabled {
  473. mi := &file_app_dns_config_proto_msgTypes[4]
  474. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  475. ms.StoreMessageInfo(mi)
  476. }
  477. }
  478. func (x *NameServer_PriorityDomain) String() string {
  479. return protoimpl.X.MessageStringOf(x)
  480. }
  481. func (*NameServer_PriorityDomain) ProtoMessage() {}
  482. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  483. mi := &file_app_dns_config_proto_msgTypes[4]
  484. if protoimpl.UnsafeEnabled && x != nil {
  485. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  486. if ms.LoadMessageInfo() == nil {
  487. ms.StoreMessageInfo(mi)
  488. }
  489. return ms
  490. }
  491. return mi.MessageOf(x)
  492. }
  493. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  494. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  495. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  496. }
  497. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  498. if x != nil {
  499. return x.Type
  500. }
  501. return DomainMatchingType_Full
  502. }
  503. func (x *NameServer_PriorityDomain) GetDomain() string {
  504. if x != nil {
  505. return x.Domain
  506. }
  507. return ""
  508. }
  509. type NameServer_OriginalRule struct {
  510. state protoimpl.MessageState
  511. sizeCache protoimpl.SizeCache
  512. unknownFields protoimpl.UnknownFields
  513. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  514. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  515. }
  516. func (x *NameServer_OriginalRule) Reset() {
  517. *x = NameServer_OriginalRule{}
  518. if protoimpl.UnsafeEnabled {
  519. mi := &file_app_dns_config_proto_msgTypes[5]
  520. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  521. ms.StoreMessageInfo(mi)
  522. }
  523. }
  524. func (x *NameServer_OriginalRule) String() string {
  525. return protoimpl.X.MessageStringOf(x)
  526. }
  527. func (*NameServer_OriginalRule) ProtoMessage() {}
  528. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  529. mi := &file_app_dns_config_proto_msgTypes[5]
  530. if protoimpl.UnsafeEnabled && x != nil {
  531. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  532. if ms.LoadMessageInfo() == nil {
  533. ms.StoreMessageInfo(mi)
  534. }
  535. return ms
  536. }
  537. return mi.MessageOf(x)
  538. }
  539. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  540. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  541. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  542. }
  543. func (x *NameServer_OriginalRule) GetRule() string {
  544. if x != nil {
  545. return x.Rule
  546. }
  547. return ""
  548. }
  549. func (x *NameServer_OriginalRule) GetSize() uint32 {
  550. if x != nil {
  551. return x.Size
  552. }
  553. return 0
  554. }
  555. var File_app_dns_config_proto protoreflect.FileDescriptor
  556. var file_app_dns_config_proto_rawDesc = []byte{
  557. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  558. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  559. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
  560. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70,
  561. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  562. 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  563. 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72,
  564. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  565. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  566. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  567. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x04, 0x0a, 0x0a, 0x4e,
  568. 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64,
  569. 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72,
  570. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  571. 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64,
  572. 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  573. 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49,
  574. 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  575. 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c,
  576. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x5c, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74,
  577. 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28,
  578. 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  579. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65,
  580. 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  581. 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d,
  582. 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03,
  583. 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  584. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  585. 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67,
  586. 0x65, 0x6f, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  587. 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76,
  588. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e,
  589. 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69,
  590. 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69,
  591. 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x64, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f,
  592. 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79,
  593. 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  594. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f,
  595. 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65,
  596. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  597. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36,
  598. 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12,
  599. 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75,
  600. 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
  601. 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d,
  602. 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  603. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  604. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  605. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
  606. 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
  607. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
  608. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72,
  609. 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01,
  610. 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  611. 0x6e, 0x22, 0xbf, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b,
  612. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
  613. 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  614. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
  615. 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  616. 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76,
  617. 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  618. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61,
  619. 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  620. 0x72, 0x76, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20,
  621. 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  622. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  623. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05,
  624. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
  625. 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  626. 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73,
  627. 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  628. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f,
  629. 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69,
  630. 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20,
  631. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61,
  632. 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c,
  633. 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e,
  634. 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09,
  635. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  636. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53,
  637. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74,
  638. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  639. 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52,
  640. 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  641. 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
  642. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  643. 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  644. 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  645. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61,
  646. 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08,
  647. 0x07, 0x10, 0x08, 0x22, 0xeb, 0x04, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69,
  648. 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65,
  649. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
  650. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  651. 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02,
  652. 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12,
  653. 0x3f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05,
  654. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  655. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  656. 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  657. 0x12, 0x49, 0x0a, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  658. 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  659. 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43,
  660. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  661. 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63,
  662. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
  663. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74,
  664. 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,
  665. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  666. 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52,
  667. 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03,
  668. 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22,
  669. 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08,
  670. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63,
  671. 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61,
  672. 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
  673. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  674. 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71,
  675. 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f,
  676. 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18,
  677. 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61,
  678. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45,
  679. 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  680. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  681. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  682. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50,
  683. 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
  684. 0x02, 0x38, 0x01, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
  685. 0x63, 0x65, 0x82, 0xb5, 0x18, 0x05, 0x12, 0x03, 0x64, 0x6e, 0x73, 0x4a, 0x04, 0x08, 0x07, 0x10,
  686. 0x08, 0x2a, 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68,
  687. 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10,
  688. 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01,
  689. 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a,
  690. 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x03, 0x2a, 0x35, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72,
  691. 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45,
  692. 0x5f, 0x49, 0x50, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34,
  693. 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x02, 0x42,
  694. 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  695. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74,
  696. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  697. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f,
  698. 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  699. 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  700. }
  701. var (
  702. file_app_dns_config_proto_rawDescOnce sync.Once
  703. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  704. )
  705. func file_app_dns_config_proto_rawDescGZIP() []byte {
  706. file_app_dns_config_proto_rawDescOnce.Do(func() {
  707. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  708. })
  709. return file_app_dns_config_proto_rawDescData
  710. }
  711. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  712. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  713. var file_app_dns_config_proto_goTypes = []interface{}{
  714. (DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
  715. (QueryStrategy)(0), // 1: v2ray.core.app.dns.QueryStrategy
  716. (*NameServer)(nil), // 2: v2ray.core.app.dns.NameServer
  717. (*HostMapping)(nil), // 3: v2ray.core.app.dns.HostMapping
  718. (*Config)(nil), // 4: v2ray.core.app.dns.Config
  719. (*SimplifiedConfig)(nil), // 5: v2ray.core.app.dns.SimplifiedConfig
  720. (*NameServer_PriorityDomain)(nil), // 6: v2ray.core.app.dns.NameServer.PriorityDomain
  721. (*NameServer_OriginalRule)(nil), // 7: v2ray.core.app.dns.NameServer.OriginalRule
  722. nil, // 8: v2ray.core.app.dns.Config.HostsEntry
  723. nil, // 9: v2ray.core.app.dns.SimplifiedConfig.HostsEntry
  724. (*net.Endpoint)(nil), // 10: v2ray.core.common.net.Endpoint
  725. (*routercommon.GeoIP)(nil), // 11: v2ray.core.app.router.routercommon.GeoIP
  726. (*net.IPOrDomain)(nil), // 12: v2ray.core.common.net.IPOrDomain
  727. }
  728. var file_app_dns_config_proto_depIdxs = []int32{
  729. 10, // 0: v2ray.core.app.dns.NameServer.address:type_name -> v2ray.core.common.net.Endpoint
  730. 6, // 1: v2ray.core.app.dns.NameServer.prioritized_domain:type_name -> v2ray.core.app.dns.NameServer.PriorityDomain
  731. 11, // 2: v2ray.core.app.dns.NameServer.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  732. 7, // 3: v2ray.core.app.dns.NameServer.original_rules:type_name -> v2ray.core.app.dns.NameServer.OriginalRule
  733. 0, // 4: v2ray.core.app.dns.HostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  734. 10, // 5: v2ray.core.app.dns.Config.NameServers:type_name -> v2ray.core.common.net.Endpoint
  735. 2, // 6: v2ray.core.app.dns.Config.name_server:type_name -> v2ray.core.app.dns.NameServer
  736. 8, // 7: v2ray.core.app.dns.Config.Hosts:type_name -> v2ray.core.app.dns.Config.HostsEntry
  737. 3, // 8: v2ray.core.app.dns.Config.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  738. 1, // 9: v2ray.core.app.dns.Config.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  739. 10, // 10: v2ray.core.app.dns.SimplifiedConfig.NameServers:type_name -> v2ray.core.common.net.Endpoint
  740. 2, // 11: v2ray.core.app.dns.SimplifiedConfig.name_server:type_name -> v2ray.core.app.dns.NameServer
  741. 9, // 12: v2ray.core.app.dns.SimplifiedConfig.Hosts:type_name -> v2ray.core.app.dns.SimplifiedConfig.HostsEntry
  742. 3, // 13: v2ray.core.app.dns.SimplifiedConfig.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  743. 1, // 14: v2ray.core.app.dns.SimplifiedConfig.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  744. 0, // 15: v2ray.core.app.dns.NameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  745. 12, // 16: v2ray.core.app.dns.Config.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  746. 12, // 17: v2ray.core.app.dns.SimplifiedConfig.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  747. 18, // [18:18] is the sub-list for method output_type
  748. 18, // [18:18] is the sub-list for method input_type
  749. 18, // [18:18] is the sub-list for extension type_name
  750. 18, // [18:18] is the sub-list for extension extendee
  751. 0, // [0:18] is the sub-list for field type_name
  752. }
  753. func init() { file_app_dns_config_proto_init() }
  754. func file_app_dns_config_proto_init() {
  755. if File_app_dns_config_proto != nil {
  756. return
  757. }
  758. if !protoimpl.UnsafeEnabled {
  759. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  760. switch v := v.(*NameServer); i {
  761. case 0:
  762. return &v.state
  763. case 1:
  764. return &v.sizeCache
  765. case 2:
  766. return &v.unknownFields
  767. default:
  768. return nil
  769. }
  770. }
  771. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  772. switch v := v.(*HostMapping); i {
  773. case 0:
  774. return &v.state
  775. case 1:
  776. return &v.sizeCache
  777. case 2:
  778. return &v.unknownFields
  779. default:
  780. return nil
  781. }
  782. }
  783. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  784. switch v := v.(*Config); i {
  785. case 0:
  786. return &v.state
  787. case 1:
  788. return &v.sizeCache
  789. case 2:
  790. return &v.unknownFields
  791. default:
  792. return nil
  793. }
  794. }
  795. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  796. switch v := v.(*SimplifiedConfig); i {
  797. case 0:
  798. return &v.state
  799. case 1:
  800. return &v.sizeCache
  801. case 2:
  802. return &v.unknownFields
  803. default:
  804. return nil
  805. }
  806. }
  807. file_app_dns_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  808. switch v := v.(*NameServer_PriorityDomain); i {
  809. case 0:
  810. return &v.state
  811. case 1:
  812. return &v.sizeCache
  813. case 2:
  814. return &v.unknownFields
  815. default:
  816. return nil
  817. }
  818. }
  819. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  820. switch v := v.(*NameServer_OriginalRule); i {
  821. case 0:
  822. return &v.state
  823. case 1:
  824. return &v.sizeCache
  825. case 2:
  826. return &v.unknownFields
  827. default:
  828. return nil
  829. }
  830. }
  831. }
  832. type x struct{}
  833. out := protoimpl.TypeBuilder{
  834. File: protoimpl.DescBuilder{
  835. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  836. RawDescriptor: file_app_dns_config_proto_rawDesc,
  837. NumEnums: 2,
  838. NumMessages: 8,
  839. NumExtensions: 0,
  840. NumServices: 0,
  841. },
  842. GoTypes: file_app_dns_config_proto_goTypes,
  843. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  844. EnumInfos: file_app_dns_config_proto_enumTypes,
  845. MessageInfos: file_app_dns_config_proto_msgTypes,
  846. }.Build()
  847. File_app_dns_config_proto = out.File
  848. file_app_dns_config_proto_rawDesc = nil
  849. file_app_dns_config_proto_goTypes = nil
  850. file_app_dns_config_proto_depIdxs = nil
  851. }