s5

package
v1.3.1-sp5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S5Config

type S5Config struct {
	HandshakeTimeout    time.Duration
	HijackMode          bool
	SkipHttp2           bool
	MITMTLSConfig       *mitm.Config
	Debug               bool
	DownstreamHTTPProxy string
}

func NewConfig

func NewConfig() (*S5Config, error)

func (*S5Config) ConnectionFallback

func (c *S5Config) ConnectionFallback(src, proxiedConn net.Conn) error

func (*S5Config) HandleS5Request

func (c *S5Config) HandleS5Request(conn net.Conn) (net.Conn, error)

func (*S5Config) Handshake

func (c *S5Config) Handshake(conn net.Conn) (net.Conn, error)

func (*S5Config) HijackSource

func (c *S5Config) HijackSource(src, proxiedConn net.Conn) (net.Conn, net.Conn, bool, error)

func (*S5Config) IsHijackMode

func (h *S5Config) IsHijackMode() bool

func (*S5Config) IsSocks5HandleShake

func (c *S5Config) IsSocks5HandleShake(conn net.Conn) (net.Conn, bool, error)

func (*S5Config) ServeConn

func (c *S5Config) ServeConn(conn net.Conn) error

func (*S5Config) TLSConfigFromSNI

func (h *S5Config) TLSConfigFromSNI(i string) *tls.Config

Jump to

Keyboard shortcuts

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