config.pb.go 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package dns
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import net "v2ray.com/core/common/net"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  15. type Config struct {
  16. // Nameservers used by this DNS. Only traditional UDP servers are support at the moment.
  17. // A special value 'localhost' as a domain address can be set to use DNS on local system.
  18. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers" json:"NameServers,omitempty"`
  19. // Static hosts. Domain to IP.
  20. Hosts map[string]*net.IPOrDomain `protobuf:"bytes,2,rep,name=Hosts" json:"Hosts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *Config) Reset() { *m = Config{} }
  26. func (m *Config) String() string { return proto.CompactTextString(m) }
  27. func (*Config) ProtoMessage() {}
  28. func (*Config) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_config_862435acfeec6b70, []int{0}
  30. }
  31. func (m *Config) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_Config.Unmarshal(m, b)
  33. }
  34. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  36. }
  37. func (dst *Config) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_Config.Merge(dst, src)
  39. }
  40. func (m *Config) XXX_Size() int {
  41. return xxx_messageInfo_Config.Size(m)
  42. }
  43. func (m *Config) XXX_DiscardUnknown() {
  44. xxx_messageInfo_Config.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_Config proto.InternalMessageInfo
  47. func (m *Config) GetNameServers() []*net.Endpoint {
  48. if m != nil {
  49. return m.NameServers
  50. }
  51. return nil
  52. }
  53. func (m *Config) GetHosts() map[string]*net.IPOrDomain {
  54. if m != nil {
  55. return m.Hosts
  56. }
  57. return nil
  58. }
  59. func init() {
  60. proto.RegisterType((*Config)(nil), "v2ray.core.app.dns.Config")
  61. proto.RegisterMapType((map[string]*net.IPOrDomain)(nil), "v2ray.core.app.dns.Config.HostsEntry")
  62. }
  63. func init() {
  64. proto.RegisterFile("v2ray.com/core/app/dns/config.proto", fileDescriptor_config_862435acfeec6b70)
  65. }
  66. var fileDescriptor_config_862435acfeec6b70 = []byte{
  67. // 286 bytes of a gzipped FileDescriptorProto
  68. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0x33, 0x31,
  69. 0x10, 0x86, 0xc9, 0x96, 0x16, 0xbe, 0xf4, 0xf2, 0x91, 0x83, 0x2c, 0xbd, 0x58, 0x15, 0xb1, 0x20,
  70. 0x4c, 0x60, 0x15, 0x14, 0x3d, 0xd5, 0xb6, 0xa0, 0x17, 0x2d, 0x2b, 0x78, 0xd0, 0x53, 0xdc, 0x44,
  71. 0x59, 0x34, 0x33, 0x21, 0x89, 0x0b, 0xfb, 0x97, 0xfc, 0x5f, 0xfe, 0x0f, 0xe9, 0x06, 0xb1, 0xa8,
  72. 0xbd, 0x85, 0xe4, 0x79, 0xf2, 0xbe, 0x33, 0x7c, 0xaf, 0x29, 0xbc, 0x6a, 0xa1, 0x22, 0x2b, 0x2b,
  73. 0xf2, 0x46, 0x2a, 0xe7, 0xa4, 0xc6, 0x20, 0x2b, 0xc2, 0xa7, 0xfa, 0x19, 0x9c, 0xa7, 0x48, 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