proxy

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWS added in v1.2.3

func CloseWS(wsConn *websocket.Conn)

func ConnectWS

func ConnectWS(network string, host string, port string, config config.Config) *websocket.Conn

func DirectProxy

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

func ForwardClient

func ForwardClient(wsConn *websocket.Conn, conn net.Conn, config config.Config)

func ForwardRemote

func ForwardRemote(wsConn *websocket.Conn, conn net.Conn, config config.Config)

func Response

func Response(conn net.Conn, rep byte)

func ResponseNoAuth added in v1.1.2

func ResponseNoAuth(conn net.Conn)

func ResponseUDPAddr added in v1.1.2

func ResponseUDPAddr(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, config config.Config)

Types

type RequestAddr added in v1.1.0

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

func (*RequestAddr) MarshalBinary added in v1.1.0

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

MarshalBinary

func (*RequestAddr) UnmarshalBinary added in v1.1.0

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

UnmarshalBinary

type UDPServer added in v1.0.1

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

Jump to

Keyboard shortcuts

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