obfs

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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