proxy

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectProxy

func DirectProxy(conn net.Conn, host string, port string, config config.Config)

func ResponseNoAuth added in v1.1.2

func ResponseNoAuth(conn net.Conn)

func ResponseTCP added in v1.5.5

func ResponseTCP(conn net.Conn, rep byte)

func ResponseUDP added in v1.5.5

func ResponseUDP(conn net.Conn, bindAddr *net.UDPAddr)

func TCPProxy added in v1.0.1

func TCPProxy(conn net.Conn, config config.Config, data []byte)

func UDPProxy added in v1.0.1

func UDPProxy(tcpConn net.Conn, udpConn *net.UDPConn, config config.Config)

Types

type ProxyUDP added in v1.4.8

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

type RequestAddr added in v1.1.0

type RequestAddr struct {
	Host      string
	Port      string
	Key       string
	Network   string
	Timestamp string
	Random    string
}

func (*RequestAddr) MarshalBinary added in v1.1.0

func (r *RequestAddr) MarshalBinary() ([]byte, error)

func (*RequestAddr) UnmarshalBinary added in v1.1.0

func (r *RequestAddr) UnmarshalBinary(data []byte) error

type UDPReply added in v1.4.8

type UDPReply struct {
	UDPConn *net.UDPConn
	Config  config.Config
}

func (*UDPReply) Start added in v1.4.8

func (u *UDPReply) Start()

Jump to

Keyboard shortcuts

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