config.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: app/dns/config.proto
  6. package dns
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. router "v2ray.com/core/app/router"
  14. net "v2ray.com/core/common/net"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  23. // of the legacy proto package is being used.
  24. const _ = proto.ProtoPackageIsVersion4
  25. type DomainMatchingType int32
  26. const (
  27. DomainMatchingType_Full DomainMatchingType = 0
  28. DomainMatchingType_Subdomain DomainMatchingType = 1
  29. DomainMatchingType_Keyword DomainMatchingType = 2
  30. DomainMatchingType_Regex DomainMatchingType = 3
  31. )
  32. // Enum value maps for DomainMatchingType.
  33. var (
  34. DomainMatchingType_name = map[int32]string{
  35. 0: "Full",
  36. 1: "Subdomain",
  37. 2: "Keyword",
  38. 3: "Regex",
  39. }
  40. DomainMatchingType_value = map[string]int32{
  41. "Full": 0,
  42. "Subdomain": 1,
  43. "Keyword": 2,
  44. "Regex": 3,
  45. }
  46. )
  47. func (x DomainMatchingType) Enum() *DomainMatchingType {
  48. p := new(DomainMatchingType)
  49. *p = x
  50. return p
  51. }
  52. func (x DomainMatchingType) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  56. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  57. }
  58. func (DomainMatchingType) Type() protoreflect.EnumType {
  59. return &file_app_dns_config_proto_enumTypes[0]
  60. }
  61. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use DomainMatchingType.Descriptor instead.
  65. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  66. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  67. }
  68. type NameServer struct {
  69. state protoimpl.MessageState
  70. sizeCache protoimpl.SizeCache
  71. unknownFields protoimpl.UnknownFields
  72. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  73. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  74. Geoip []*router.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  75. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  76. }
  77. func (x *NameServer) Reset() {
  78. *x = NameServer{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_app_dns_config_proto_msgTypes[0]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *NameServer) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*NameServer) ProtoMessage() {}
  89. func (x *NameServer) ProtoReflect() protoreflect.Message {
  90. mi := &file_app_dns_config_proto_msgTypes[0]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use NameServer.ProtoReflect.Descriptor instead.
  101. func (*NameServer) Descriptor() ([]byte, []int) {
  102. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  103. }
  104. func (x *NameServer) GetAddress() *net.Endpoint {
  105. if x != nil {
  106. return x.Address
  107. }
  108. return nil
  109. }
  110. func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDomain {
  111. if x != nil {
  112. return x.PrioritizedDomain
  113. }
  114. return nil
  115. }
  116. func (x *NameServer) GetGeoip() []*router.GeoIP {
  117. if x != nil {
  118. return x.Geoip
  119. }
  120. return nil
  121. }
  122. func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule {
  123. if x != nil {
  124. return x.OriginalRules
  125. }
  126. return nil
  127. }
  128. type Config struct {
  129. state protoimpl.MessageState
  130. sizeCache protoimpl.SizeCache
  131. unknownFields protoimpl.UnknownFields
  132. // Nameservers used by this DNS. Only traditional UDP servers are support at the moment.
  133. // A special value 'localhost' as a domain address can be set to use DNS on local system.
  134. //
  135. // Deprecated: Do not use.
  136. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  137. // NameServer list used by this DNS client.
  138. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  139. // Static hosts. Domain to IP.
  140. // Deprecated. Use static_hosts.
  141. //
  142. // Deprecated: Do not use.
  143. 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"`
  144. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes (IPv6).
  145. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  146. StaticHosts []*Config_HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  147. // Tag is the inbound tag of DNS client.
  148. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  149. }
  150. func (x *Config) Reset() {
  151. *x = Config{}
  152. if protoimpl.UnsafeEnabled {
  153. mi := &file_app_dns_config_proto_msgTypes[1]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. }
  158. func (x *Config) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*Config) ProtoMessage() {}
  162. func (x *Config) ProtoReflect() protoreflect.Message {
  163. mi := &file_app_dns_config_proto_msgTypes[1]
  164. if protoimpl.UnsafeEnabled && x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  174. func (*Config) Descriptor() ([]byte, []int) {
  175. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  176. }
  177. // Deprecated: Do not use.
  178. func (x *Config) GetNameServers() []*net.Endpoint {
  179. if x != nil {
  180. return x.NameServers
  181. }
  182. return nil
  183. }
  184. func (x *Config) GetNameServer() []*NameServer {
  185. if x != nil {
  186. return x.NameServer
  187. }
  188. return nil
  189. }
  190. // Deprecated: Do not use.
  191. func (x *Config) GetHosts() map[string]*net.IPOrDomain {
  192. if x != nil {
  193. return x.Hosts
  194. }
  195. return nil
  196. }
  197. func (x *Config) GetClientIp() []byte {
  198. if x != nil {
  199. return x.ClientIp
  200. }
  201. return nil
  202. }
  203. func (x *Config) GetStaticHosts() []*Config_HostMapping {
  204. if x != nil {
  205. return x.StaticHosts
  206. }
  207. return nil
  208. }
  209. func (x *Config) GetTag() string {
  210. if x != nil {
  211. return x.Tag
  212. }
  213. return ""
  214. }
  215. type NameServer_PriorityDomain struct {
  216. state protoimpl.MessageState
  217. sizeCache protoimpl.SizeCache
  218. unknownFields protoimpl.UnknownFields
  219. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  220. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  221. }
  222. func (x *NameServer_PriorityDomain) Reset() {
  223. *x = NameServer_PriorityDomain{}
  224. if protoimpl.UnsafeEnabled {
  225. mi := &file_app_dns_config_proto_msgTypes[2]
  226. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  227. ms.StoreMessageInfo(mi)
  228. }
  229. }
  230. func (x *NameServer_PriorityDomain) String() string {
  231. return protoimpl.X.MessageStringOf(x)
  232. }
  233. func (*NameServer_PriorityDomain) ProtoMessage() {}
  234. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  235. mi := &file_app_dns_config_proto_msgTypes[2]
  236. if protoimpl.UnsafeEnabled && x != nil {
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. if ms.LoadMessageInfo() == nil {
  239. ms.StoreMessageInfo(mi)
  240. }
  241. return ms
  242. }
  243. return mi.MessageOf(x)
  244. }
  245. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  246. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  247. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  248. }
  249. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  250. if x != nil {
  251. return x.Type
  252. }
  253. return DomainMatchingType_Full
  254. }
  255. func (x *NameServer_PriorityDomain) GetDomain() string {
  256. if x != nil {
  257. return x.Domain
  258. }
  259. return ""
  260. }
  261. type NameServer_OriginalRule struct {
  262. state protoimpl.MessageState
  263. sizeCache protoimpl.SizeCache
  264. unknownFields protoimpl.UnknownFields
  265. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  266. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  267. }
  268. func (x *NameServer_OriginalRule) Reset() {
  269. *x = NameServer_OriginalRule{}
  270. if protoimpl.UnsafeEnabled {
  271. mi := &file_app_dns_config_proto_msgTypes[3]
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. ms.StoreMessageInfo(mi)
  274. }
  275. }
  276. func (x *NameServer_OriginalRule) String() string {
  277. return protoimpl.X.MessageStringOf(x)
  278. }
  279. func (*NameServer_OriginalRule) ProtoMessage() {}
  280. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  281. mi := &file_app_dns_config_proto_msgTypes[3]
  282. if protoimpl.UnsafeEnabled && x != nil {
  283. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  284. if ms.LoadMessageInfo() == nil {
  285. ms.StoreMessageInfo(mi)
  286. }
  287. return ms
  288. }
  289. return mi.MessageOf(x)
  290. }
  291. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  292. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  293. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  294. }
  295. func (x *NameServer_OriginalRule) GetRule() string {
  296. if x != nil {
  297. return x.Rule
  298. }
  299. return ""
  300. }
  301. func (x *NameServer_OriginalRule) GetSize() uint32 {
  302. if x != nil {
  303. return x.Size
  304. }
  305. return 0
  306. }
  307. type Config_HostMapping struct {
  308. state protoimpl.MessageState
  309. sizeCache protoimpl.SizeCache
  310. unknownFields protoimpl.UnknownFields
  311. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  312. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  313. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  314. // ProxiedDomain indicates the mapped domain has the same IP address on this domain. V2Ray will use this domain for IP queries.
  315. // This field is only effective if ip is empty.
  316. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  317. }
  318. func (x *Config_HostMapping) Reset() {
  319. *x = Config_HostMapping{}
  320. if protoimpl.UnsafeEnabled {
  321. mi := &file_app_dns_config_proto_msgTypes[5]
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. ms.StoreMessageInfo(mi)
  324. }
  325. }
  326. func (x *Config_HostMapping) String() string {
  327. return protoimpl.X.MessageStringOf(x)
  328. }
  329. func (*Config_HostMapping) ProtoMessage() {}
  330. func (x *Config_HostMapping) ProtoReflect() protoreflect.Message {
  331. mi := &file_app_dns_config_proto_msgTypes[5]
  332. if protoimpl.UnsafeEnabled && x != nil {
  333. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  334. if ms.LoadMessageInfo() == nil {
  335. ms.StoreMessageInfo(mi)
  336. }
  337. return ms
  338. }
  339. return mi.MessageOf(x)
  340. }
  341. // Deprecated: Use Config_HostMapping.ProtoReflect.Descriptor instead.
  342. func (*Config_HostMapping) Descriptor() ([]byte, []int) {
  343. return file_app_dns_config_proto_rawDescGZIP(), []int{1, 1}
  344. }
  345. func (x *Config_HostMapping) GetType() DomainMatchingType {
  346. if x != nil {
  347. return x.Type
  348. }
  349. return DomainMatchingType_Full
  350. }
  351. func (x *Config_HostMapping) GetDomain() string {
  352. if x != nil {
  353. return x.Domain
  354. }
  355. return ""
  356. }
  357. func (x *Config_HostMapping) GetIp() [][]byte {
  358. if x != nil {
  359. return x.Ip
  360. }
  361. return nil
  362. }
  363. func (x *Config_HostMapping) GetProxiedDomain() string {
  364. if x != nil {
  365. return x.ProxiedDomain
  366. }
  367. return ""
  368. }
  369. var File_app_dns_config_proto protoreflect.FileDescriptor
  370. var file_app_dns_config_proto_rawDesc = []byte{
  371. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  372. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  373. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
  374. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70,
  375. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  376. 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  377. 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63,
  378. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x03, 0x0a, 0x0a,
  379. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64,
  380. 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32,
  381. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  382. 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64,
  383. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74,
  384. 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28,
  385. 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  386. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65,
  387. 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  388. 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d,
  389. 0x61, 0x69, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03,
  390. 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  391. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  392. 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69,
  393. 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  394. 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  395. 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
  396. 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72,
  397. 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x64, 0x0a, 0x0e, 0x50,
  398. 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a,
  399. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32,
  400. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  401. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54,
  402. 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d,
  403. 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  404. 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c,
  405. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  406. 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20,
  407. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0xc3, 0x04, 0x0a, 0x06, 0x43, 0x6f,
  408. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  409. 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61,
  410. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  411. 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b,
  412. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e,
  413. 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
  414. 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  415. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  416. 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x05,
  417. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32,
  418. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  419. 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74,
  420. 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a,
  421. 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
  422. 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x49, 0x0a, 0x0c, 0x73, 0x74,
  423. 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
  424. 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  425. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73,
  426. 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63,
  427. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01,
  428. 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x73,
  429. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  430. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  431. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  432. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49,
  433. 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  434. 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x98, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70,
  435. 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  436. 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  437. 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61,
  438. 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
  439. 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  440. 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03,
  441. 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78,
  442. 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  443. 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2a,
  444. 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e,
  445. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12,
  446. 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b,
  447. 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52,
  448. 0x65, 0x67, 0x65, 0x78, 0x10, 0x03, 0x42, 0x47, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32,
  449. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  450. 0x50, 0x01, 0x5a, 0x16, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
  451. 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52,
  452. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62,
  453. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  454. }
  455. var (
  456. file_app_dns_config_proto_rawDescOnce sync.Once
  457. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  458. )
  459. func file_app_dns_config_proto_rawDescGZIP() []byte {
  460. file_app_dns_config_proto_rawDescOnce.Do(func() {
  461. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  462. })
  463. return file_app_dns_config_proto_rawDescData
  464. }
  465. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  466. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  467. var file_app_dns_config_proto_goTypes = []interface{}{
  468. (DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
  469. (*NameServer)(nil), // 1: v2ray.core.app.dns.NameServer
  470. (*Config)(nil), // 2: v2ray.core.app.dns.Config
  471. (*NameServer_PriorityDomain)(nil), // 3: v2ray.core.app.dns.NameServer.PriorityDomain
  472. (*NameServer_OriginalRule)(nil), // 4: v2ray.core.app.dns.NameServer.OriginalRule
  473. nil, // 5: v2ray.core.app.dns.Config.HostsEntry
  474. (*Config_HostMapping)(nil), // 6: v2ray.core.app.dns.Config.HostMapping
  475. (*net.Endpoint)(nil), // 7: v2ray.core.common.net.Endpoint
  476. (*router.GeoIP)(nil), // 8: v2ray.core.app.router.GeoIP
  477. (*net.IPOrDomain)(nil), // 9: v2ray.core.common.net.IPOrDomain
  478. }
  479. var file_app_dns_config_proto_depIdxs = []int32{
  480. 7, // 0: v2ray.core.app.dns.NameServer.address:type_name -> v2ray.core.common.net.Endpoint
  481. 3, // 1: v2ray.core.app.dns.NameServer.prioritized_domain:type_name -> v2ray.core.app.dns.NameServer.PriorityDomain
  482. 8, // 2: v2ray.core.app.dns.NameServer.geoip:type_name -> v2ray.core.app.router.GeoIP
  483. 4, // 3: v2ray.core.app.dns.NameServer.original_rules:type_name -> v2ray.core.app.dns.NameServer.OriginalRule
  484. 7, // 4: v2ray.core.app.dns.Config.NameServers:type_name -> v2ray.core.common.net.Endpoint
  485. 1, // 5: v2ray.core.app.dns.Config.name_server:type_name -> v2ray.core.app.dns.NameServer
  486. 5, // 6: v2ray.core.app.dns.Config.Hosts:type_name -> v2ray.core.app.dns.Config.HostsEntry
  487. 6, // 7: v2ray.core.app.dns.Config.static_hosts:type_name -> v2ray.core.app.dns.Config.HostMapping
  488. 0, // 8: v2ray.core.app.dns.NameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  489. 9, // 9: v2ray.core.app.dns.Config.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  490. 0, // 10: v2ray.core.app.dns.Config.HostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  491. 11, // [11:11] is the sub-list for method output_type
  492. 11, // [11:11] is the sub-list for method input_type
  493. 11, // [11:11] is the sub-list for extension type_name
  494. 11, // [11:11] is the sub-list for extension extendee
  495. 0, // [0:11] is the sub-list for field type_name
  496. }
  497. func init() { file_app_dns_config_proto_init() }
  498. func file_app_dns_config_proto_init() {
  499. if File_app_dns_config_proto != nil {
  500. return
  501. }
  502. if !protoimpl.UnsafeEnabled {
  503. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  504. switch v := v.(*NameServer); i {
  505. case 0:
  506. return &v.state
  507. case 1:
  508. return &v.sizeCache
  509. case 2:
  510. return &v.unknownFields
  511. default:
  512. return nil
  513. }
  514. }
  515. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  516. switch v := v.(*Config); i {
  517. case 0:
  518. return &v.state
  519. case 1:
  520. return &v.sizeCache
  521. case 2:
  522. return &v.unknownFields
  523. default:
  524. return nil
  525. }
  526. }
  527. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  528. switch v := v.(*NameServer_PriorityDomain); i {
  529. case 0:
  530. return &v.state
  531. case 1:
  532. return &v.sizeCache
  533. case 2:
  534. return &v.unknownFields
  535. default:
  536. return nil
  537. }
  538. }
  539. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  540. switch v := v.(*NameServer_OriginalRule); i {
  541. case 0:
  542. return &v.state
  543. case 1:
  544. return &v.sizeCache
  545. case 2:
  546. return &v.unknownFields
  547. default:
  548. return nil
  549. }
  550. }
  551. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  552. switch v := v.(*Config_HostMapping); i {
  553. case 0:
  554. return &v.state
  555. case 1:
  556. return &v.sizeCache
  557. case 2:
  558. return &v.unknownFields
  559. default:
  560. return nil
  561. }
  562. }
  563. }
  564. type x struct{}
  565. out := protoimpl.TypeBuilder{
  566. File: protoimpl.DescBuilder{
  567. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  568. RawDescriptor: file_app_dns_config_proto_rawDesc,
  569. NumEnums: 1,
  570. NumMessages: 6,
  571. NumExtensions: 0,
  572. NumServices: 0,
  573. },
  574. GoTypes: file_app_dns_config_proto_goTypes,
  575. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  576. EnumInfos: file_app_dns_config_proto_enumTypes,
  577. MessageInfos: file_app_dns_config_proto_msgTypes,
  578. }.Build()
  579. File_app_dns_config_proto = out.File
  580. file_app_dns_config_proto_rawDesc = nil
  581. file_app_dns_config_proto_goTypes = nil
  582. file_app_dns_config_proto_depIdxs = nil
  583. }