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