config.pb.go 25 KB

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