config.pb.go 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  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. router "github.com/v2fly/v2ray-core/v4/app/router"
  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 []*router.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() []*router.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, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63,
  564. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d,
  565. 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74,
  566. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x04,
  567. 0x0a, 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07,
  568. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
  569. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  570. 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07,
  571. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,
  572. 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,
  573. 0x6e, 0x74, 0x49, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c,
  574. 0x62, 0x61, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70,
  575. 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x5c, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f,
  576. 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02,
  577. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  578. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  579. 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d,
  580. 0x61, 0x69, 0x6e, 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64,
  581. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18,
  582. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  583. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65,
  584. 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x6f, 0x72,
  585. 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,
  586. 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  587. 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  588. 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52,
  589. 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x64,
  590. 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  591. 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26,
  592. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  593. 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69,
  594. 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
  595. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f,
  596. 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  597. 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01,
  598. 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
  599. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x98, 0x01, 0x0a,
  600. 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04,
  601. 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72,
  602. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  603. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79,
  604. 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  605. 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  606. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70,
  607. 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61,
  608. 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65,
  609. 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xbf, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66,
  610. 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  611. 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  612. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  613. 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61,
  614. 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d,
  615. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
  616. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  617. 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a,
  618. 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x48, 0x6f,
  619. 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61,
  620. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43,
  621. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  622. 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63,
  623. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
  624. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74,
  625. 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,
  626. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  627. 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52,
  628. 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03,
  629. 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22,
  630. 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08,
  631. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63,
  632. 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61,
  633. 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
  634. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  635. 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71,
  636. 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f,
  637. 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18,
  638. 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61,
  639. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45,
  640. 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  641. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  642. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  643. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50,
  644. 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
  645. 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0xeb, 0x04, 0x0a, 0x10, 0x53, 0x69,
  646. 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45,
  647. 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
  648. 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  649. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70,
  650. 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  651. 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65,
  652. 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72,
  653. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  654. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65,
  655. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18,
  656. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  657. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c,
  658. 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74,
  659. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74,
  660. 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03,
  661. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x42,
  662. 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04,
  663. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  664. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61,
  665. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73,
  666. 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
  667. 0x03, 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,
  668. 0x61, 0x63, 0x68, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61,
  669. 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72,
  670. 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e,
  671. 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  672. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74,
  673. 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
  674. 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c,
  675. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x69, 0x73,
  676. 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x1a, 0x5b, 0x0a, 0x0a,
  677. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  678. 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05,
  679. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32,
  680. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  681. 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05,
  682. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x09, 0x0a,
  683. 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x05, 0x12, 0x03, 0x6c, 0x6f,
  684. 0x67, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x2a, 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  685. 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
  686. 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f,
  687. 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72,
  688. 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x03, 0x2a, 0x35,
  689. 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,
  690. 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55,
  691. 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f,
  692. 0x49, 0x50, 0x36, 0x10, 0x02, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
  693. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50,
  694. 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  695. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  696. 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61,
  697. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06,
  698. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  699. }
  700. var (
  701. file_app_dns_config_proto_rawDescOnce sync.Once
  702. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  703. )
  704. func file_app_dns_config_proto_rawDescGZIP() []byte {
  705. file_app_dns_config_proto_rawDescOnce.Do(func() {
  706. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  707. })
  708. return file_app_dns_config_proto_rawDescData
  709. }
  710. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  711. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  712. var file_app_dns_config_proto_goTypes = []interface{}{
  713. (DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
  714. (QueryStrategy)(0), // 1: v2ray.core.app.dns.QueryStrategy
  715. (*NameServer)(nil), // 2: v2ray.core.app.dns.NameServer
  716. (*HostMapping)(nil), // 3: v2ray.core.app.dns.HostMapping
  717. (*Config)(nil), // 4: v2ray.core.app.dns.Config
  718. (*SimplifiedConfig)(nil), // 5: v2ray.core.app.dns.SimplifiedConfig
  719. (*NameServer_PriorityDomain)(nil), // 6: v2ray.core.app.dns.NameServer.PriorityDomain
  720. (*NameServer_OriginalRule)(nil), // 7: v2ray.core.app.dns.NameServer.OriginalRule
  721. nil, // 8: v2ray.core.app.dns.Config.HostsEntry
  722. nil, // 9: v2ray.core.app.dns.SimplifiedConfig.HostsEntry
  723. (*net.Endpoint)(nil), // 10: v2ray.core.common.net.Endpoint
  724. (*router.GeoIP)(nil), // 11: v2ray.core.app.router.GeoIP
  725. (*net.IPOrDomain)(nil), // 12: v2ray.core.common.net.IPOrDomain
  726. }
  727. var file_app_dns_config_proto_depIdxs = []int32{
  728. 10, // 0: v2ray.core.app.dns.NameServer.address:type_name -> v2ray.core.common.net.Endpoint
  729. 6, // 1: v2ray.core.app.dns.NameServer.prioritized_domain:type_name -> v2ray.core.app.dns.NameServer.PriorityDomain
  730. 11, // 2: v2ray.core.app.dns.NameServer.geoip:type_name -> v2ray.core.app.router.GeoIP
  731. 7, // 3: v2ray.core.app.dns.NameServer.original_rules:type_name -> v2ray.core.app.dns.NameServer.OriginalRule
  732. 0, // 4: v2ray.core.app.dns.HostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  733. 10, // 5: v2ray.core.app.dns.Config.NameServers:type_name -> v2ray.core.common.net.Endpoint
  734. 2, // 6: v2ray.core.app.dns.Config.name_server:type_name -> v2ray.core.app.dns.NameServer
  735. 8, // 7: v2ray.core.app.dns.Config.Hosts:type_name -> v2ray.core.app.dns.Config.HostsEntry
  736. 3, // 8: v2ray.core.app.dns.Config.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  737. 1, // 9: v2ray.core.app.dns.Config.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  738. 10, // 10: v2ray.core.app.dns.SimplifiedConfig.NameServers:type_name -> v2ray.core.common.net.Endpoint
  739. 2, // 11: v2ray.core.app.dns.SimplifiedConfig.name_server:type_name -> v2ray.core.app.dns.NameServer
  740. 9, // 12: v2ray.core.app.dns.SimplifiedConfig.Hosts:type_name -> v2ray.core.app.dns.SimplifiedConfig.HostsEntry
  741. 3, // 13: v2ray.core.app.dns.SimplifiedConfig.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  742. 1, // 14: v2ray.core.app.dns.SimplifiedConfig.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  743. 0, // 15: v2ray.core.app.dns.NameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  744. 12, // 16: v2ray.core.app.dns.Config.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  745. 12, // 17: v2ray.core.app.dns.SimplifiedConfig.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  746. 18, // [18:18] is the sub-list for method output_type
  747. 18, // [18:18] is the sub-list for method input_type
  748. 18, // [18:18] is the sub-list for extension type_name
  749. 18, // [18:18] is the sub-list for extension extendee
  750. 0, // [0:18] is the sub-list for field type_name
  751. }
  752. func init() { file_app_dns_config_proto_init() }
  753. func file_app_dns_config_proto_init() {
  754. if File_app_dns_config_proto != nil {
  755. return
  756. }
  757. if !protoimpl.UnsafeEnabled {
  758. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  759. switch v := v.(*NameServer); i {
  760. case 0:
  761. return &v.state
  762. case 1:
  763. return &v.sizeCache
  764. case 2:
  765. return &v.unknownFields
  766. default:
  767. return nil
  768. }
  769. }
  770. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  771. switch v := v.(*HostMapping); i {
  772. case 0:
  773. return &v.state
  774. case 1:
  775. return &v.sizeCache
  776. case 2:
  777. return &v.unknownFields
  778. default:
  779. return nil
  780. }
  781. }
  782. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  783. switch v := v.(*Config); i {
  784. case 0:
  785. return &v.state
  786. case 1:
  787. return &v.sizeCache
  788. case 2:
  789. return &v.unknownFields
  790. default:
  791. return nil
  792. }
  793. }
  794. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  795. switch v := v.(*SimplifiedConfig); i {
  796. case 0:
  797. return &v.state
  798. case 1:
  799. return &v.sizeCache
  800. case 2:
  801. return &v.unknownFields
  802. default:
  803. return nil
  804. }
  805. }
  806. file_app_dns_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  807. switch v := v.(*NameServer_PriorityDomain); i {
  808. case 0:
  809. return &v.state
  810. case 1:
  811. return &v.sizeCache
  812. case 2:
  813. return &v.unknownFields
  814. default:
  815. return nil
  816. }
  817. }
  818. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  819. switch v := v.(*NameServer_OriginalRule); i {
  820. case 0:
  821. return &v.state
  822. case 1:
  823. return &v.sizeCache
  824. case 2:
  825. return &v.unknownFields
  826. default:
  827. return nil
  828. }
  829. }
  830. }
  831. type x struct{}
  832. out := protoimpl.TypeBuilder{
  833. File: protoimpl.DescBuilder{
  834. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  835. RawDescriptor: file_app_dns_config_proto_rawDesc,
  836. NumEnums: 2,
  837. NumMessages: 8,
  838. NumExtensions: 0,
  839. NumServices: 0,
  840. },
  841. GoTypes: file_app_dns_config_proto_goTypes,
  842. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  843. EnumInfos: file_app_dns_config_proto_enumTypes,
  844. MessageInfos: file_app_dns_config_proto_msgTypes,
  845. }.Build()
  846. File_app_dns_config_proto = out.File
  847. file_app_dns_config_proto_rawDesc = nil
  848. file_app_dns_config_proto_goTypes = nil
  849. file_app_dns_config_proto_depIdxs = nil
  850. }