obfs

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPObfs

func NewHTTPObfs(conn net.Conn, host string, port string) net.Conn

NewHTTPObfs return a HTTPObfs

func NewTLSObfs

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

NewTLSObfs return a SimpleObfs

Types

type HTTPObfs

type HTTPObfs struct {
	net.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 TLSObfs

type TLSObfs struct {
	net.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