obfs

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ObfsMethod = map[string]struct {
	stream   func(net.Conn, Obfs) net.Conn
	overhead int
}{
	"http_post":              {newHttpPost, 0},
	"http_simple":            {newHttpSimple, 0},
	"plain":                  {newPlain, 0},
	"random_head":            {newRandomHead, 0},
	"tls1.2_ticket_auth":     {newTLS12TicketAuth, 5},
	"tls1.2_ticket_fastauth": {newTLS12TicketAuth, 5},
}

Functions

This section is empty.

Types

type Obfs

type Obfs struct {
	*cipher.Cipher
	Name  string
	Host  string
	Port  string
	Param string
}

func (Obfs) Overhead

func (o Obfs) Overhead() int

func (Obfs) Stream

func (o Obfs) Stream(c net.Conn) (net.Conn, error)

Jump to

Keyboard shortcuts

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