proxy

package
v1.8.20230922 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientHandshake added in v1.0.20230907

func ClientHandshake(stream io.ReadWriteCloser, network string, host string, port string, key string, obfs bool) bool

func MuxHandler added in v1.0.20230907

func MuxHandler(w net.Conn, config config.Config)

Types

type HandshakeRequest added in v1.0.20230907

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

func ServerHandshake added in v1.0.20230907

func ServerHandshake(config config.Config, reader *bufio.Reader) (bool, HandshakeRequest)

func (*HandshakeRequest) MarshalBinary added in v1.0.20230907

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

func (*HandshakeRequest) UnmarshalBinary added in v1.0.20230907

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

type KCPProxy added in v1.0.20230907

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

func (*KCPProxy) ConnectServer added in v1.0.20230907

func (p *KCPProxy) ConnectServer() net.Conn

func (*KCPProxy) Handler added in v1.0.20230907

func (p *KCPProxy) Handler(conn net.Conn)

func (*KCPProxy) StartServer added in v1.0.20230907

func (p *KCPProxy) StartServer()

func (*KCPProxy) StopServer added in v1.0.20230907

func (p *KCPProxy) StopServer()

type Proxy added in v1.0.20230907

type Proxy interface {
	ConnectServer() net.Conn
	StartServer()
	StopServer()
	Handler(conn net.Conn)
}

func NewProxy added in v1.0.20230907

func NewProxy(config config.Config) Proxy

type TCPProxy added in v1.0.1

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

func (*TCPProxy) ConnectServer added in v1.0.20230907

func (p *TCPProxy) ConnectServer() net.Conn

func (*TCPProxy) Handler added in v1.0.20230907

func (p *TCPProxy) Handler(conn net.Conn)

func (*TCPProxy) StartServer added in v1.0.20230907

func (p *TCPProxy) StartServer()

func (*TCPProxy) StopServer added in v1.0.20230907

func (p *TCPProxy) StopServer()

type WSProxy added in v1.0.20230907

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

func (*WSProxy) ConnectServer added in v1.0.20230907

func (p *WSProxy) ConnectServer() net.Conn

func (*WSProxy) Handler added in v1.0.20230907

func (p *WSProxy) Handler(conn net.Conn)

func (*WSProxy) StartServer added in v1.0.20230907

func (p *WSProxy) StartServer()

func (*WSProxy) StopServer added in v1.0.20230907

func (p *WSProxy) StopServer()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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