socksTap

package
v0.0.0-...-401b346 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocksTap

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

func (*SocksTap) Shutdown

func (fakeDns *SocksTap) Shutdown()

func (*SocksTap) Start

func (fakeDns *SocksTap) Start(localSocks string, excludeDomain string, udpProxy bool)

type TunDnsV1

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

func NewTunDns

func NewTunDns(addr string, port uint16) *TunDnsV1

func (*TunDnsV1) Exchange

func (tunDns *TunDnsV1) Exchange(m *dns.Msg) (r *dns.Msg, rtt time.Duration, err error)

func (*TunDnsV1) ServeDNS

func (tunDns *TunDnsV1) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*TunDnsV1) Shutdown

func (tunDns *TunDnsV1) Shutdown()

func (*TunDnsV1) StartSmartDns

func (tunDns *TunDnsV1) StartSmartDns()

Jump to

Keyboard shortcuts

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