obfs

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-2.0 Imports: 11 Imported by: 0

README

simple-obfs

mod from https://github.com/Dreamacro/clash/transport/simple-obfs version: 1.11.8

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