client

package
v0.0.0-...-d4fbfd5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PolluteDomainName sync.Map

污染的域名不用再尝试解析

Functions

func FdToIO

func FdToIO(fd int) (io.ReadWriteCloser, error)

func SocketToTun

func SocketToTun(unixSockTun string) (io.ReadWriteCloser, error)

android use unix Socket

Types

type Client

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

func (*Client) Shutdown

func (c *Client) Shutdown()

func (*Client) Start

func (c *Client) Start() error

type LocalDns

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

func (*LocalDns) ServeDNS

func (localDns *LocalDns) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*LocalDns) Shutdown

func (localDns *LocalDns) Shutdown()

func (*LocalDns) StartDns

func (localDns *LocalDns) StartDns()

remote to loacal

type LocalSocks

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

func (*LocalSocks) Shutdown

func (lSocks *LocalSocks) Shutdown()

func (*LocalSocks) Start

func (lSocks *LocalSocks) Start(address string) error

type SafeDns

type SafeDns interface {
	Resolve(remoteHost string, ipType int) (string, error)
}

type Tun2Socks

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

func (*Tun2Socks) Shutdown

func (_tun2socks *Tun2Socks) Shutdown()

func (*Tun2Socks) Start

func (_tun2socks *Tun2Socks) Start(tunDevice string, tunAddr string, tunMask string, tunGW string, tunDNS string) error

tunType==1

type UdpProxy

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

func (*UdpProxy) Shutdown

func (udpProxy *UdpProxy) Shutdown()

这里得保持socks5协议兼容

type UdpTunnel

type UdpTunnel struct {
	Tunnel comm.CommConn

	sync.Mutex
	// contains filtered or unexported fields
}

func (*UdpTunnel) Connect

func (ut *UdpTunnel) Connect() (comm.CommConn, error)

func (*UdpTunnel) GetTunnel

func (rd *UdpTunnel) GetTunnel() comm.CommConn

func (*UdpTunnel) PutTunnel

func (rd *UdpTunnel) PutTunnel(tunnel comm.CommConn)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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