package dns import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import net "v2ray.com/core/common/net" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Config_HostMapping_Type int32 const ( Config_HostMapping_Full Config_HostMapping_Type = 0 Config_HostMapping_SubDomain Config_HostMapping_Type = 1 ) var Config_HostMapping_Type_name = map[int32]string{ 0: "Full", 1: "SubDomain", } var Config_HostMapping_Type_value = map[string]int32{ "Full": 0, "SubDomain": 1, } func (x Config_HostMapping_Type) String() string { return proto.EnumName(Config_HostMapping_Type_name, int32(x)) } func (Config_HostMapping_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_config_2b74f789a4ce2a14, []int{0, 1, 0} } type Config struct { // 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. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"` // Static hosts. Domain to IP. // Deprecated. Use static_hosts. 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"` // Deprecated: Do not use. // 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"` StaticHosts []*Config_HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Config) Reset() { *m = Config{} } func (m *Config) String() string { return proto.CompactTextString(m) } func (*Config) ProtoMessage() {} func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor_config_2b74f789a4ce2a14, []int{0} } func (m *Config) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Config.Unmarshal(m, b) } func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Config.Marshal(b, m, deterministic) } func (dst *Config) XXX_Merge(src proto.Message) { xxx_messageInfo_Config.Merge(dst, src) } func (m *Config) XXX_Size() int { return xxx_messageInfo_Config.Size(m) } func (m *Config) XXX_DiscardUnknown() { xxx_messageInfo_Config.DiscardUnknown(m) } var xxx_messageInfo_Config proto.InternalMessageInfo func (m *Config) GetNameServers() []*net.Endpoint { if m != nil { return m.NameServers } return nil } // Deprecated: Do not use. func (m *Config) GetHosts() map[string]*net.IPOrDomain { if m != nil { return m.Hosts } return nil } func (m *Config) GetClientIp() []byte { if m != nil { return m.ClientIp } return nil } func (m *Config) GetStaticHosts() []*Config_HostMapping { if m != nil { return m.StaticHosts } return nil } type Config_HostMapping struct { Type Config_HostMapping_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.Config_HostMapping_Type" 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Config_HostMapping) Reset() { *m = Config_HostMapping{} } func (m *Config_HostMapping) String() string { return proto.CompactTextString(m) } func (*Config_HostMapping) ProtoMessage() {} func (*Config_HostMapping) Descriptor() ([]byte, []int) { return fileDescriptor_config_2b74f789a4ce2a14, []int{0, 1} } func (m *Config_HostMapping) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Config_HostMapping.Unmarshal(m, b) } func (m *Config_HostMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Config_HostMapping.Marshal(b, m, deterministic) } func (dst *Config_HostMapping) XXX_Merge(src proto.Message) { xxx_messageInfo_Config_HostMapping.Merge(dst, src) } func (m *Config_HostMapping) XXX_Size() int { return xxx_messageInfo_Config_HostMapping.Size(m) } func (m *Config_HostMapping) XXX_DiscardUnknown() { xxx_messageInfo_Config_HostMapping.DiscardUnknown(m) } var xxx_messageInfo_Config_HostMapping proto.InternalMessageInfo func (m *Config_HostMapping) GetType() Config_HostMapping_Type { if m != nil { return m.Type } return Config_HostMapping_Full } func (m *Config_HostMapping) GetDomain() string { if m != nil { return m.Domain } return "" } func (m *Config_HostMapping) GetIp() [][]byte { if m != nil { return m.Ip } return nil } func init() { proto.RegisterType((*Config)(nil), "v2ray.core.app.dns.Config") proto.RegisterMapType((map[string]*net.IPOrDomain)(nil), "v2ray.core.app.dns.Config.HostsEntry") proto.RegisterType((*Config_HostMapping)(nil), "v2ray.core.app.dns.Config.HostMapping") proto.RegisterEnum("v2ray.core.app.dns.Config_HostMapping_Type", Config_HostMapping_Type_name, Config_HostMapping_Type_value) } func init() { proto.RegisterFile("v2ray.com/core/app/dns/config.proto", fileDescriptor_config_2b74f789a4ce2a14) } var fileDescriptor_config_2b74f789a4ce2a14 = []byte{ // 416 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdd, 0x6a, 0x14, 0x31, 0x14, 0xc7, 0xcd, 0xcc, 0x76, 0xe9, 0x9e, 0x59, 0xcb, 0x92, 0x8b, 0x32, 0xac, 0x17, 0x5d, 0x2b, 0xea, 0x40, 0x21, 0x03, 0xa3, 0xa0, 0x78, 0x53, 0xfa, 0x25, 0xee, 0x85, 0x5a, 0x52, 0xf1, 0x42, 0x2f, 0x4a, 0x3a, 0x89, 0x35, 0xb8, 0x73, 0x12, 0x92, 0xec, 0xc2, 0x3c, 0x89, 0xef, 0xe0, 0xab, 0xf9, 0x12, 0xb2, 0x89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