v2ray-core: github.com/v2ray/v2ray-core/proxy/dns Index | Files

package dns

import "github.com/v2ray/v2ray-core/proxy/dns"


Package Files

config.pb.go dns.go errors.generated.go


var File_proxy_dns_config_proto protoreflect.FileDescriptor

type Config Uses

type Config struct {

    // 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"`
    // contains filtered or unexported fields

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetServer Uses

func (x *Config) GetServer() *net.Endpoint

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields

func (*Handler) Init Uses

func (h *Handler) Init(config *Config, dnsClient dns.Client) error

func (*Handler) Process Uses

func (h *Handler) Process(ctx context.Context, link *transport.Link, d internet.Dialer) error

Process implements proxy.Outbound.

Package dns imports 19 packages (graph). Updated 2020-12-29. Refresh now. Tools for package owners.