shadowsocks

package
v0.3.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPOBFS

func NewHTTPOBFS(config *node.PointProtocol_ObfsHttp) node.WrapProxy

func NewShadowsocks

func NewShadowsocks(config *node.PointProtocol_Shadowsocks) node.WrapProxy

func NewSsPacketConn

func NewSsPacketConn(conn net.PacketConn, host *net.UDPAddr, target proxy.Address) net.PacketConn

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 {
	// contains filtered or unexported fields
}

Shadowsocks shadowsocks

func (*Shadowsocks) Conn

func (s *Shadowsocks) Conn(addr proxy.Address) (conn net.Conn, err error)

Conn .

func (*Shadowsocks) PacketConn

func (s *Shadowsocks) PacketConn(tar proxy.Address) (net.PacketConn, error)

PacketConn .

Jump to

Keyboard shortcuts

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