client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSRDialer

func NewSSRDialer(s string, d 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 struct.

func NewSSR

func NewSSR(s string, d 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.

Jump to

Keyboard shortcuts

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