xtls

package
v0.0.0-...-e5d0cd3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version_x byte = 1
	Version_y byte = 8
	Version_z byte = 10
)

Functions

This section is empty.

Types

type Reality

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

func NewReality

func NewReality(s string, d netproxy.Dialer) (*Reality, error)

func (*Reality) Dial

func (x *Reality) Dial(network, addr string) (c netproxy.Conn, err error)

func (*Reality) DialContext

func (x *Reality) DialContext(ctx context.Context, network, addr string) (c netproxy.Conn, err error)

type UConn

type UConn struct {
	*utls.UConn
	ServerName string
	AuthKey    []byte
	Verified   bool
}

func (*UConn) VerifyPeerCertificate

func (c *UConn) VerifyPeerCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

Jump to

Keyboard shortcuts

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