simpleobfs

package
v0.0.0-...-b617006 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPObfs

func NewHTTPObfs(conn netproxy.Conn, host string, port string, path string) netproxy.Conn

NewHTTPObfs return a HTTPObfs

func NewSimpleObfs

func NewSimpleObfs(option *dialer.ExtraOption, nextDialer netproxy.Dialer, link string) (netproxy.Dialer, *dialer.Property, error)

NewSimpleobfs returns a simpleobfs proxy.

func NewTLSObfs

func NewTLSObfs(conn netproxy.Conn, server string) netproxy.Conn

NewTLSObfs return a SimpleObfs

Types

type HTTPObfs

type HTTPObfs struct {
	netproxy.Conn
	// contains filtered or unexported fields
}

HTTPObfs is shadowsocks http simple-obfs implementation

func (*HTTPObfs) Read

func (ho *HTTPObfs) Read(b []byte) (int, error)

func (*HTTPObfs) Write

func (ho *HTTPObfs) Write(b []byte) (int, error)

type ObfsType

type ObfsType int
const (
	HTTP ObfsType = iota
	TLS
)

type SimpleObfs

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

SimpleObfs is a base http-obfs struct

func (*SimpleObfs) DialContext

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

type TLSObfs

type TLSObfs struct {
	netproxy.Conn
	// contains filtered or unexported fields
}

TLSObfs is shadowsocks tls simple-obfs implementation

func (*TLSObfs) Read

func (to *TLSObfs) Read(b []byte) (int, error)

func (*TLSObfs) Write

func (to *TLSObfs) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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