shadowsocks

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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
In both stream-oriented and packet-oriented connections, length of nonce and tag varies depending on which AEAD is used.
In both stream-oriented and packet-oriented connections, length of nonce and tag varies depending on which AEAD is used.

Jump to

Keyboard shortcuts

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