client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, log *logrus.Logger) (*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