ssr

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSRClientStreamCipher

type SSRClientStreamCipher struct {
	cipher.StreamCipher
	Obfs  obfs.Obfs
	Proto protocol.Protocol
}

SSRClientStreamCipher shadowsocks StreamCipher wrapper key

func NewSSRClientStreamCipher

func NewSSRClientStreamCipher(ciph cipher.StreamCipher, addr string,
	protocolName, protocolParam,
	obfsName, obfsParam string) (*SSRClientStreamCipher, error)

type ShadowsocksR

type ShadowsocksR struct {
	Cipher   *SSRClientStreamCipher
	SSTcp    transport.TcpConnBound
	SSUdp    transport.UdpConnBound
	Obfs     obfs.Obfs
	Protocol protocol.Protocol
}

func (*ShadowsocksR) PacketConn

func (ssr *ShadowsocksR) PacketConn(c net.PacketConn) net.PacketConn

PacketConn the UDP relay in shadowsocksr only support stream cipher and can not use Obfs

func (*ShadowsocksR) StreamConn

func (ssr *ShadowsocksR) StreamConn(c net.Conn) net.Conn

type ShadowsocksROption

type ShadowsocksROption struct {
	Protocol      string
	ProtocolParam string
	Obfs          string
	ObfsParam     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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