shadowsocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.3.3

func NewClient(config *protocol.Protocol_Shadowsocks) point.WrapProxy

func NewHTTPOBFS

func NewHTTPOBFS(config *protocol.Protocol_ObfsHttp) point.WrapProxy

Types

type HTTPObfs

type HTTPObfs struct {
	net.Conn
	// contains filtered or unexported fields
}
from https://github.com/Dreamacro/clash/blob/master/component/simple-obfs/http.go

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 Shadowsocks

type Shadowsocks struct {
	netapi.EmptyDispatch
	// contains filtered or unexported fields
}

Shadowsocks shadowsocks

func (*Shadowsocks) Conn

func (s *Shadowsocks) Conn(ctx context.Context, addr netapi.Address) (conn net.Conn, err error)

Conn .

func (*Shadowsocks) PacketConn

func (s *Shadowsocks) PacketConn(ctx context.Context, tar netapi.Address) (net.PacketConn, error)

PacketConn .

Directories

Path Synopsis
Package bloom implements Bloom Filter using double hashing
Package bloom implements Bloom Filter using double hashing
Package shadowaead implements a simple AEAD-protected secure protocol.
Package shadowaead implements a simple AEAD-protected secure protocol.

Jump to

Keyboard shortcuts

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