|
|
|
@ -4,6 +4,7 @@ import (
|
|
|
|
|
fmt "fmt" |
|
|
|
|
proto "github.com/golang/protobuf/proto" |
|
|
|
|
math "math" |
|
|
|
|
net "v2ray.com/core/common/net" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
@ -18,9 +19,11 @@ var _ = math.Inf
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
|
|
type Config struct { |
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
// Server is the DNS server address. If specified, this address overrides the original one.
|
|
|
|
|
Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` |
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *Config) Reset() { *m = Config{} } |
|
|
|
@ -48,6 +51,13 @@ func (m *Config) XXX_DiscardUnknown() {
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Config proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
|
func (m *Config) GetServer() *net.Endpoint { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Server |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.proxy.dns.Config") |
|
|
|
|
} |
|
|
|
@ -57,13 +67,17 @@ func init() {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_c49bb2d51e576d57 = []byte{ |
|
|
|
|
// 123 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x33, 0x2a, 0x4a, |
|
|
|
|
0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x28, 0xca, 0xaf, 0xa8, |
|
|
|
|
0xd4, 0x4f, 0xc9, 0x2b, 0xd6, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, |
|
|
|
|
0xc9, 0x17, 0x12, 0x81, 0x29, 0x2b, 0x4a, 0xd5, 0x03, 0x2b, 0xd1, 0x4b, 0xc9, 0x2b, 0x56, 0xe2, |
|
|
|
|
0xe0, 0x62, 0x73, 0x06, 0xab, 0x72, 0xb2, 0xe0, 0x92, 0x48, 0xce, 0xcf, 0xd5, 0xc3, 0xa6, 0x2a, |
|
|
|
|
0x80, 0x31, 0x8a, 0x39, 0x25, 0xaf, 0x78, 0x15, 0x93, 0x48, 0x98, 0x51, 0x50, 0x62, 0xa5, 0x9e, |
|
|
|
|
0x33, 0x48, 0x36, 0x00, 0x2c, 0xeb, 0x92, 0x57, 0x9c, 0xc4, 0x06, 0xb6, 0xc0, 0x18, 0x10, 0x00, |
|
|
|
|
0x00, 0xff, 0xff, 0xee, 0x22, 0xde, 0xc9, 0x89, 0x00, 0x00, 0x00, |
|
|
|
|
// 190 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8e, 0x31, 0xab, 0xc2, 0x30, |
|
|
|
|
0x14, 0x46, 0xe9, 0x7b, 0xd0, 0x21, 0x6f, 0x2b, 0x1d, 0xca, 0x5b, 0xde, 0x43, 0x10, 0x04, 0xe1, |
|
|
|
|
0x06, 0xea, 0xa0, 0xab, 0x56, 0xf7, 0xd2, 0xc1, 0xc1, 0xad, 0x26, 0x51, 0x32, 0xe4, 0xde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