ssr

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSRDialer

func NewSSRDialer(s string, dialer proxy.Dialer) (proxy.Dialer, error)

NewSSRDialer returns a ssr proxy dialer.

Types

type SSR

type SSR struct {
	EncryptMethod   string
	EncryptPassword string
	Obfs            string
	ObfsParam       string
	ObfsData        interface{}
	Protocol        string
	ProtocolParam   string
	ProtocolData    interface{}
	// contains filtered or unexported fields
}

SSR .

func NewSSR

func NewSSR(s string, dialer proxy.Dialer) (*SSR, error)

NewSSR returns a shadowsocksr proxy, ssr://method:pass@host:port/query

func (*SSR) Addr

func (s *SSR) Addr() string

Addr returns forwarder's address

func (*SSR) Dial

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

Dial connects to the address addr on the network net via the proxy.

func (*SSR) DialUDP

func (s *SSR) DialUDP(network, addr string) (net.PacketConn, net.Addr, error)

DialUDP connects to the given address via the proxy.

func (*SSR) NextDialer

func (s *SSR) NextDialer(dstAddr string) proxy.Dialer

NextDialer returns the next dialer

Jump to

Keyboard shortcuts

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