resolver

package
v0.3.1-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSServer

func NewDNSServer(resolver proxy.ResolverProxy) server.DNSServer

func NewFakeDNS

func NewFakeDNS(dialer proxy.Proxy, resolverProxy proxy.ResolverProxy) proxy.DialerResolverProxy

Types

type DnsServer

type DnsServer struct {
	server.DNSServer
	// contains filtered or unexported fields
}

func (*DnsServer) Update

func (a *DnsServer) Update(s *protoconfig.Setting)

type Fakedns

type Fakedns struct {
	// contains filtered or unexported fields
}

func (*Fakedns) Conn

func (f *Fakedns) Conn(addr proxy.Address) (net.Conn, error)

func (*Fakedns) PacketConn

func (f *Fakedns) PacketConn(addr proxy.Address) (net.PacketConn, error)

func (*Fakedns) Resolver

func (f *Fakedns) Resolver(addr proxy.Address) idns.DNS

func (*Fakedns) Update

func (f *Fakedns) Update(c *protoconfig.Setting)

type Resolvers

type Resolvers struct {
	// contains filtered or unexported fields
}

func NewResolvers

func NewResolvers(dl proxy.Proxy) *Resolvers

func (*Resolvers) Close

func (r *Resolvers) Close() error

func (*Resolvers) Local

func (r *Resolvers) Local() idns.DNS

func (*Resolvers) Remote

func (r *Resolvers) Remote() idns.DNS

func (*Resolvers) Update

func (r *Resolvers) Update(s *protoconfig.Setting)

type WrapAddressPacketConn

type WrapAddressPacketConn struct {
	net.PacketConn
	ProcessAddress func(proxy.Address) proxy.Address
}

func (*WrapAddressPacketConn) WriteTo

func (f *WrapAddressPacketConn) WriteTo(b []byte, addr net.Addr) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL