socksTap

package
v0.0.0-...-159e71c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 20 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)

func (*SocksTap) UdpDirect

func (fakeDns *SocksTap) UdpDirect(remoteAddr string, conn core.CommUDPConn, ep core.CommEndpoint)

直连

type TunDns

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

func (*TunDns) Exchange

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

func (*TunDns) ServeDNS

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

func (*TunDns) Shutdown

func (tunDns *TunDns) Shutdown()

Jump to

Keyboard shortcuts

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