obfs2

package module
v2.2.22 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 12 Imported by: 6

Documentation

Overview

Package obfs2 provides an implementation of the Tor Project's obfs2 obfuscation protocol. This protocol is considered trivially broken by most sophisticated adversaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptimizerTransport added in v2.1.12

type OptimizerTransport struct {
	Address string
	Dialer  proxy.Dialer
}

OptimizerTransport contains params needed for Optimizer

func New

func New(address string, dialer proxy.Dialer) *OptimizerTransport

New initializes obfs2 for Optimizer

func (OptimizerTransport) Dial added in v2.1.12

func (transport OptimizerTransport) Dial() (net.Conn, error)

Dial connects to a specified address. this dial function is made to be Optimizer compatible

type Transport

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

Transport is the obfs2 implementation of the base.Transport interface.

func NewObfs2Transport

func NewObfs2Transport() *Transport

NewObfs2Transport is the initializer for obfs2 without a dialer

func NewObfs2TransportWithDialer added in v2.1.13

func NewObfs2TransportWithDialer(dialer proxy.Dialer) *Transport

NewObfs2Transport is the initializer for obfs2 with a dialer

func (*Transport) Dial

func (transport *Transport) Dial(address string) (net.Conn, error)

Dial creates outgoing transport connection

func (*Transport) Listen added in v2.1.12

func (transport *Transport) Listen(address string) net.Listener

Listen creates listener for incoming transport connection

Jump to

Keyboard shortcuts

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