proxy

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectServer

func ConnectServer(config config.Config) quic.Session

func DirectProxy

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

func Handshake

func Handshake(network string, host string, port string, session quic.Session) (bool, quic.Stream)

func Resp added in v1.0.4

func Resp(conn net.Conn, rep byte)

func RespNoAuth added in v1.0.4

func RespNoAuth(conn net.Conn)

func RespSuccess added in v1.0.4

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

func TCPProxy

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

func UDPProxy

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

Types

type RequestAddr

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

func (*RequestAddr) MarshalBinary

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

func (*RequestAddr) UnmarshalBinary

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

type UDPRelay added in v1.0.2

type UDPRelay struct {
	UDPConn *net.UDPConn
	Config  config.Config
	// contains filtered or unexported fields
}

func (*UDPRelay) Start added in v1.0.2

func (relay *UDPRelay) Start() *net.UDPConn

Jump to

Keyboard shortcuts

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