desync

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Packet []byte
	Lazy   bool
}

type TLSDesyncer

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

TLSDesyncer splits the data into chunks and optionally disorders packets by manipulating TTL.

func NewTLSDesyncer

func NewTLSDesyncer(
	logger zerolog.Logger,
	writer packet.Writer,
	sniffer packet.Sniffer,
) *TLSDesyncer

func (*TLSDesyncer) Desync

func (d *TLSDesyncer) Desync(
	ctx context.Context,
	conn net.Conn,
	msg *proto.TLSMessage,
	httpsOpts *config.HTTPSOptions,
) (int, error)

func (*TLSDesyncer) PrepareHopTrack added in v1.5.2

func (d *TLSDesyncer) PrepareHopTrack(addrs []net.IP, cfg *config.HTTPSOptions)

PrepareHopTrack registers addrs with the sniffer for hop-count learning, guarded by the config so the LRU isn't touched when fakes won't be sent.

func (*TLSDesyncer) String

func (d *TLSDesyncer) String() string

type UDPDesyncer

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

func NewUDPDesyncer

func NewUDPDesyncer(
	logger zerolog.Logger,
	writer packet.Writer,
	sniffer packet.Sniffer,
) *UDPDesyncer

func (*UDPDesyncer) Desync

func (d *UDPDesyncer) Desync(
	ctx context.Context,
	lConn net.Conn,
	rConn net.Conn,
	opts *config.UDPOptions,
) (int, error)

func (*UDPDesyncer) PrepareHopTrack added in v1.5.2

func (d *UDPDesyncer) PrepareHopTrack(addrs []net.IP, cfg *config.UDPOptions)

PrepareHopTrack registers addrs with the sniffer for hop-count learning, guarded by the config so the LRU isn't touched when fakes won't be sent.

Jump to

Keyboard shortcuts

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