shadowsocks

package
v0.0.0-...-4e15e42 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url *url.URL, forward proxy.Dialer) (proxy.Dialer, error)

Types

type ShadowSocks

type ShadowSocks struct {
	URL       *url.URL
	Cipher    core.Cipher
	DialProxy func(context.Context, string, string) (net.Conn, error)
}

func (*ShadowSocks) Dial

func (s *ShadowSocks) Dial(network, addr string) (net.Conn, error)

func (*ShadowSocks) DialContext

func (s *ShadowSocks) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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