shadowtls

package
v0.0.0-...-45a9176 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mode string = "shadow-tls"
)

Variables

View Source
var (
	DefaultALPN = []string{"h2", "http/1.1"}
)

Functions

func NewShadowTLS

func NewShadowTLS(conn net.Conn, password string, tlsConfig *tls.Config) net.Conn

NewShadowTLS return a ShadowTLS

Types

type HashedConn

type HashedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (HashedConn) Read

func (h HashedConn) Read(b []byte) (n int, err error)

type ShadowTLS

type ShadowTLS struct {
	net.Conn
	// contains filtered or unexported fields
}

ShadowTLS is shadow-tls implementation

func (*ShadowTLS) Read

func (s *ShadowTLS) Read(b []byte) (int, error)

func (*ShadowTLS) Write

func (s *ShadowTLS) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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