shadowsocks

package
v1.18.8 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleShadowSocks

func HandleShadowSocks(conn net.Conn, tunnel C.Tunnel, additions ...inbound.Addition) bool

func ParseSSURL

func ParseSSURL(s string) (addr, cipher, password string, err error)

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func New

func New(config LC.ShadowsocksServer, tunnel C.Tunnel) (*Listener, error)

func (*Listener) AddrList

func (l *Listener) AddrList() (addrList []net.Addr)

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) Config

func (l *Listener) Config() string

func (*Listener) HandleConn

func (l *Listener) HandleConn(conn net.Conn, tunnel C.Tunnel, additions ...inbound.Addition)

type UDPListener

type UDPListener struct {
	// contains filtered or unexported fields
}

func NewUDP

func NewUDP(addr string, pickCipher core.Cipher, tunnel C.Tunnel) (*UDPListener, error)

func (*UDPListener) Close

func (l *UDPListener) Close() error

func (*UDPListener) LocalAddr

func (l *UDPListener) LocalAddr() net.Addr

Jump to

Keyboard shortcuts

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