|
|
@@ -9,6 +9,7 @@ import (
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
|
sync "sync"
|
|
|
+ unsafe "unsafe"
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
@@ -215,10 +216,7 @@ func (FallbackStrategy) EnumDescriptor() ([]byte, []int) {
|
|
|
}
|
|
|
|
|
|
type NameServer struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
|
|
Tag string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
|
@@ -233,15 +231,15 @@ type NameServer struct {
|
|
|
QueryStrategy *QueryStrategy `protobuf:"varint,8,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy,oneof" json:"query_strategy,omitempty"`
|
|
|
CacheStrategy *CacheStrategy `protobuf:"varint,9,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy,oneof" json:"cache_strategy,omitempty"`
|
|
|
FallbackStrategy *FallbackStrategy `protobuf:"varint,10,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy,oneof" json:"fallback_strategy,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *NameServer) Reset() {
|
|
|
*x = NameServer{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[0]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *NameServer) String() string {
|
|
|
@@ -252,7 +250,7 @@ func (*NameServer) ProtoMessage() {}
|
|
|
|
|
|
func (x *NameServer) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[0]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -346,25 +344,22 @@ func (x *NameServer) GetFallbackStrategy() FallbackStrategy {
|
|
|
}
|
|
|
|
|
|
type HostMapping struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
- Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
- Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
+ Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
+ Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
|
|
|
// ProxiedDomain indicates the mapped domain has the same IP address on this
|
|
|
// domain. V2Ray will use this domain for IP queries.
|
|
|
ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *HostMapping) Reset() {
|
|
|
*x = HostMapping{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[1]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *HostMapping) String() string {
|
|
|
@@ -375,7 +370,7 @@ func (*HostMapping) ProtoMessage() {}
|
|
|
|
|
|
func (x *HostMapping) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[1]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -419,10 +414,7 @@ func (x *HostMapping) GetProxiedDomain() string {
|
|
|
}
|
|
|
|
|
|
type Config struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
// Nameservers used by this DNS. Only traditional UDP servers are support at
|
|
|
// the moment. A special value 'localhost' as a domain address can be set to
|
|
|
// use DNS on local system.
|
|
|
@@ -435,7 +427,7 @@ type Config struct {
|
|
|
// Deprecated. Use static_hosts.
|
|
|
//
|
|
|
// Deprecated: Marked as deprecated in app/dns/config.proto.
|
|
|
- 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"`
|
|
|
+ Hosts map[string]*net.IPOrDomain `protobuf:"bytes,2,rep,name=Hosts,proto3" json:"Hosts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
|
// Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
|
|
|
// (IPv6).
|
|
|
ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
|
|
@@ -466,15 +458,15 @@ type Config struct {
|
|
|
CacheStrategy CacheStrategy `protobuf:"varint,12,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy" json:"cache_strategy,omitempty"`
|
|
|
// Default fallback strategy for each name server.
|
|
|
FallbackStrategy FallbackStrategy `protobuf:"varint,13,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy" json:"fallback_strategy,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *Config) Reset() {
|
|
|
*x = Config{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[2]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[2]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *Config) String() string {
|
|
|
@@ -485,7 +477,7 @@ func (*Config) ProtoMessage() {}
|
|
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[2]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -604,10 +596,7 @@ func (x *Config) GetFallbackStrategy() FallbackStrategy {
|
|
|
}
|
|
|
|
|
|
type SimplifiedConfig struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
// NameServer list used by this DNS client.
|
|
|
NameServer []*SimplifiedNameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
|
|
|
// Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
|
|
|
@@ -640,15 +629,15 @@ type SimplifiedConfig struct {
|
|
|
CacheStrategy CacheStrategy `protobuf:"varint,12,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy" json:"cache_strategy,omitempty"`
|
|
|
// Default fallback strategy for each name server.
|
|
|
FallbackStrategy FallbackStrategy `protobuf:"varint,13,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy" json:"fallback_strategy,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedConfig) Reset() {
|
|
|
*x = SimplifiedConfig{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[3]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedConfig) String() string {
|
|
|
@@ -659,7 +648,7 @@ func (*SimplifiedConfig) ProtoMessage() {}
|
|
|
|
|
|
func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[3]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -762,25 +751,22 @@ func (x *SimplifiedConfig) GetFallbackStrategy() FallbackStrategy {
|
|
|
}
|
|
|
|
|
|
type SimplifiedHostMapping struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
- Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
- Ip []string `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
+ Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
+ Ip []string `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
|
|
|
// ProxiedDomain indicates the mapped domain has the same IP address on this
|
|
|
// domain. V2Ray will use this domain for IP queries.
|
|
|
ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedHostMapping) Reset() {
|
|
|
*x = SimplifiedHostMapping{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[4]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedHostMapping) String() string {
|
|
|
@@ -791,7 +777,7 @@ func (*SimplifiedHostMapping) ProtoMessage() {}
|
|
|
|
|
|
func (x *SimplifiedHostMapping) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[4]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -835,10 +821,7 @@ func (x *SimplifiedHostMapping) GetProxiedDomain() string {
|
|
|
}
|
|
|
|
|
|
type SimplifiedNameServer struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
|
|
Tag string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
|
@@ -854,15 +837,15 @@ type SimplifiedNameServer struct {
|
|
|
CacheStrategy *CacheStrategy `protobuf:"varint,9,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy,oneof" json:"cache_strategy,omitempty"`
|
|
|
FallbackStrategy *FallbackStrategy `protobuf:"varint,10,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy,oneof" json:"fallback_strategy,omitempty"`
|
|
|
GeoDomain []*routercommon.GeoSite `protobuf:"bytes,68001,rep,name=geo_domain,json=geoDomain,proto3" json:"geo_domain,omitempty"`
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer) Reset() {
|
|
|
*x = SimplifiedNameServer{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[5]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[5]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer) String() string {
|
|
|
@@ -873,7 +856,7 @@ func (*SimplifiedNameServer) ProtoMessage() {}
|
|
|
|
|
|
func (x *SimplifiedNameServer) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[5]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -974,21 +957,18 @@ func (x *SimplifiedNameServer) GetGeoDomain() []*routercommon.GeoSite {
|
|
|
}
|
|
|
|
|
|
type NameServer_PriorityDomain struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
+ Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
- Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *NameServer_PriorityDomain) Reset() {
|
|
|
*x = NameServer_PriorityDomain{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[6]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[6]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *NameServer_PriorityDomain) String() string {
|
|
|
@@ -999,7 +979,7 @@ func (*NameServer_PriorityDomain) ProtoMessage() {}
|
|
|
|
|
|
func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[6]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -1029,21 +1009,18 @@ func (x *NameServer_PriorityDomain) GetDomain() string {
|
|
|
}
|
|
|
|
|
|
type NameServer_OriginalRule struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
|
+ Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
|
- Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *NameServer_OriginalRule) Reset() {
|
|
|
*x = NameServer_OriginalRule{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[7]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[7]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *NameServer_OriginalRule) String() string {
|
|
|
@@ -1054,7 +1031,7 @@ func (*NameServer_OriginalRule) ProtoMessage() {}
|
|
|
|
|
|
func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[7]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -1084,21 +1061,18 @@ func (x *NameServer_OriginalRule) GetSize() uint32 {
|
|
|
}
|
|
|
|
|
|
type SimplifiedNameServer_PriorityDomain struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
+ Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
|
|
|
- Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer_PriorityDomain) Reset() {
|
|
|
*x = SimplifiedNameServer_PriorityDomain{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[9]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[9]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer_PriorityDomain) String() string {
|
|
|
@@ -1109,7 +1083,7 @@ func (*SimplifiedNameServer_PriorityDomain) ProtoMessage() {}
|
|
|
|
|
|
func (x *SimplifiedNameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[9]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -1139,21 +1113,18 @@ func (x *SimplifiedNameServer_PriorityDomain) GetDomain() string {
|
|
|
}
|
|
|
|
|
|
type SimplifiedNameServer_OriginalRule struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
+ Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
|
+ Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
|
- Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer_OriginalRule) Reset() {
|
|
|
*x = SimplifiedNameServer_OriginalRule{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_dns_config_proto_msgTypes[10]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
+ mi := &file_app_dns_config_proto_msgTypes[10]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
|
|
|
func (x *SimplifiedNameServer_OriginalRule) String() string {
|
|
|
@@ -1164,7 +1135,7 @@ func (*SimplifiedNameServer_OriginalRule) ProtoMessage() {}
|
|
|
|
|
|
func (x *SimplifiedNameServer_OriginalRule) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_app_dns_config_proto_msgTypes[10]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ if x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
@@ -1195,7 +1166,7 @@ func (x *SimplifiedNameServer_OriginalRule) GetSize() uint32 {
|
|
|
|
|
|
var File_app_dns_config_proto protoreflect.FileDescriptor
|
|
|
|
|
|
-var file_app_dns_config_proto_rawDesc = []byte{
|
|
|
+var file_app_dns_config_proto_rawDesc = string([]byte{
|
|
|
0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
|
|
|
0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
|
|
|
@@ -1479,23 +1450,23 @@ var file_app_dns_config_proto_rawDesc = []byte{
|
|
|
0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12,
|
|
|
0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44,
|
|
|
0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
-}
|
|
|
+})
|
|
|
|
|
|
var (
|
|
|
file_app_dns_config_proto_rawDescOnce sync.Once
|
|
|
- file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
|
|
|
+ file_app_dns_config_proto_rawDescData []byte
|
|
|
)
|
|
|
|
|
|
func file_app_dns_config_proto_rawDescGZIP() []byte {
|
|
|
file_app_dns_config_proto_rawDescOnce.Do(func() {
|
|
|
- file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
|
|
|
+ file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_dns_config_proto_rawDesc), len(file_app_dns_config_proto_rawDesc)))
|
|
|
})
|
|
|
return file_app_dns_config_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
|
var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
|
-var file_app_dns_config_proto_goTypes = []interface{}{
|
|
|
+var file_app_dns_config_proto_goTypes = []any{
|
|
|
(DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
|
|
|
(QueryStrategy)(0), // 1: v2ray.core.app.dns.QueryStrategy
|
|
|
(CacheStrategy)(0), // 2: v2ray.core.app.dns.CacheStrategy
|
|
|
@@ -1566,135 +1537,13 @@ func file_app_dns_config_proto_init() {
|
|
|
if File_app_dns_config_proto != nil {
|
|
|
return
|
|
|
}
|
|
|
- if !protoimpl.UnsafeEnabled {
|
|
|
- file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NameServer); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*HostMapping); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Config); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SimplifiedConfig); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SimplifiedHostMapping); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SimplifiedNameServer); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NameServer_PriorityDomain); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NameServer_OriginalRule); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SimplifiedNameServer_PriorityDomain); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SimplifiedNameServer_OriginalRule); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_dns_config_proto_msgTypes[0].OneofWrappers = []interface{}{}
|
|
|
- file_app_dns_config_proto_msgTypes[5].OneofWrappers = []interface{}{}
|
|
|
+ file_app_dns_config_proto_msgTypes[0].OneofWrappers = []any{}
|
|
|
+ file_app_dns_config_proto_msgTypes[5].OneofWrappers = []any{}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
File: protoimpl.DescBuilder{
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
- RawDescriptor: file_app_dns_config_proto_rawDesc,
|
|
|
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_dns_config_proto_rawDesc), len(file_app_dns_config_proto_rawDesc)),
|
|
|
NumEnums: 4,
|
|
|
NumMessages: 11,
|
|
|
NumExtensions: 0,
|
|
|
@@ -1706,7 +1555,6 @@ func file_app_dns_config_proto_init() {
|
|
|
MessageInfos: file_app_dns_config_proto_msgTypes,
|
|
|
}.Build()
|
|
|
File_app_dns_config_proto = out.File
|
|
|
- file_app_dns_config_proto_rawDesc = nil
|
|
|
file_app_dns_config_proto_goTypes = nil
|
|
|
file_app_dns_config_proto_depIdxs = nil
|
|
|
}
|