github.com/eagleql/xray-core@v1.4.4/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.14.0 5 // source: app/dns/config.proto 6 7 package dns 8 9 import ( 10 router "github.com/eagleql/xray-core/app/router" 11 net "github.com/eagleql/xray-core/common/net" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 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=xray.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=xray.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. Xray 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, 0x0c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 444 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 445 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 446 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 447 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 448 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 449 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x03, 0x0a, 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 450 0x72, 0x76, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 451 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 452 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 453 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x56, 0x0a, 0x12, 0x70, 0x72, 0x69, 454 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 455 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 456 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 457 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x11, 458 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 459 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 460 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 461 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 462 0x4c, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 463 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 464 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 465 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 466 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x5e, 0x0a, 467 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 468 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 469 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 470 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 471 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 472 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36, 0x0a, 473 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 474 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x6c, 475 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 476 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x9f, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 477 0x12, 0x3f, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 478 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 479 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 480 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 481 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 482 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 483 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 484 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x05, 485 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, 0x72, 486 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 487 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 488 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 489 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 490 0x6e, 0x74, 0x49, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 491 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 492 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 493 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 494 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 495 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x1a, 0x55, 0x0a, 0x0a, 0x48, 496 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 497 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 498 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 499 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 500 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 501 0x38, 0x01, 0x1a, 0x92, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 502 0x6e, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 503 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 504 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 505 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 506 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 507 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 508 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 509 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 510 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2a, 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 511 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 512 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f, 513 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 514 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x03, 0x42, 0x46, 515 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 516 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 517 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 518 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x0c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 519 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 520 } 521 522 var ( 523 file_app_dns_config_proto_rawDescOnce sync.Once 524 file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc 525 ) 526 527 func file_app_dns_config_proto_rawDescGZIP() []byte { 528 file_app_dns_config_proto_rawDescOnce.Do(func() { 529 file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData) 530 }) 531 return file_app_dns_config_proto_rawDescData 532 } 533 534 var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 535 var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 536 var file_app_dns_config_proto_goTypes = []interface{}{ 537 (DomainMatchingType)(0), // 0: xray.app.dns.DomainMatchingType 538 (*NameServer)(nil), // 1: xray.app.dns.NameServer 539 (*Config)(nil), // 2: xray.app.dns.Config 540 (*NameServer_PriorityDomain)(nil), // 3: xray.app.dns.NameServer.PriorityDomain 541 (*NameServer_OriginalRule)(nil), // 4: xray.app.dns.NameServer.OriginalRule 542 nil, // 5: xray.app.dns.Config.HostsEntry 543 (*Config_HostMapping)(nil), // 6: xray.app.dns.Config.HostMapping 544 (*net.Endpoint)(nil), // 7: xray.common.net.Endpoint 545 (*router.GeoIP)(nil), // 8: xray.app.router.GeoIP 546 (*net.IPOrDomain)(nil), // 9: xray.common.net.IPOrDomain 547 } 548 var file_app_dns_config_proto_depIdxs = []int32{ 549 7, // 0: xray.app.dns.NameServer.address:type_name -> xray.common.net.Endpoint 550 3, // 1: xray.app.dns.NameServer.prioritized_domain:type_name -> xray.app.dns.NameServer.PriorityDomain 551 8, // 2: xray.app.dns.NameServer.geoip:type_name -> xray.app.router.GeoIP 552 4, // 3: xray.app.dns.NameServer.original_rules:type_name -> xray.app.dns.NameServer.OriginalRule 553 7, // 4: xray.app.dns.Config.NameServers:type_name -> xray.common.net.Endpoint 554 1, // 5: xray.app.dns.Config.name_server:type_name -> xray.app.dns.NameServer 555 5, // 6: xray.app.dns.Config.Hosts:type_name -> xray.app.dns.Config.HostsEntry 556 6, // 7: xray.app.dns.Config.static_hosts:type_name -> xray.app.dns.Config.HostMapping 557 0, // 8: xray.app.dns.NameServer.PriorityDomain.type:type_name -> xray.app.dns.DomainMatchingType 558 9, // 9: xray.app.dns.Config.HostsEntry.value:type_name -> xray.common.net.IPOrDomain 559 0, // 10: xray.app.dns.Config.HostMapping.type:type_name -> xray.app.dns.DomainMatchingType 560 11, // [11:11] is the sub-list for method output_type 561 11, // [11:11] is the sub-list for method input_type 562 11, // [11:11] is the sub-list for extension type_name 563 11, // [11:11] is the sub-list for extension extendee 564 0, // [0:11] is the sub-list for field type_name 565 } 566 567 func init() { file_app_dns_config_proto_init() } 568 func file_app_dns_config_proto_init() { 569 if File_app_dns_config_proto != nil { 570 return 571 } 572 if !protoimpl.UnsafeEnabled { 573 file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 574 switch v := v.(*NameServer); i { 575 case 0: 576 return &v.state 577 case 1: 578 return &v.sizeCache 579 case 2: 580 return &v.unknownFields 581 default: 582 return nil 583 } 584 } 585 file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 586 switch v := v.(*Config); i { 587 case 0: 588 return &v.state 589 case 1: 590 return &v.sizeCache 591 case 2: 592 return &v.unknownFields 593 default: 594 return nil 595 } 596 } 597 file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 598 switch v := v.(*NameServer_PriorityDomain); i { 599 case 0: 600 return &v.state 601 case 1: 602 return &v.sizeCache 603 case 2: 604 return &v.unknownFields 605 default: 606 return nil 607 } 608 } 609 file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 610 switch v := v.(*NameServer_OriginalRule); i { 611 case 0: 612 return &v.state 613 case 1: 614 return &v.sizeCache 615 case 2: 616 return &v.unknownFields 617 default: 618 return nil 619 } 620 } 621 file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 622 switch v := v.(*Config_HostMapping); i { 623 case 0: 624 return &v.state 625 case 1: 626 return &v.sizeCache 627 case 2: 628 return &v.unknownFields 629 default: 630 return nil 631 } 632 } 633 } 634 type x struct{} 635 out := protoimpl.TypeBuilder{ 636 File: protoimpl.DescBuilder{ 637 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 638 RawDescriptor: file_app_dns_config_proto_rawDesc, 639 NumEnums: 1, 640 NumMessages: 6, 641 NumExtensions: 0, 642 NumServices: 0, 643 }, 644 GoTypes: file_app_dns_config_proto_goTypes, 645 DependencyIndexes: file_app_dns_config_proto_depIdxs, 646 EnumInfos: file_app_dns_config_proto_enumTypes, 647 MessageInfos: file_app_dns_config_proto_msgTypes, 648 }.Build() 649 File_app_dns_config_proto = out.File 650 file_app_dns_config_proto_rawDesc = nil 651 file_app_dns_config_proto_goTypes = nil 652 file_app_dns_config_proto_depIdxs = nil 653 }