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