tls

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSDialer

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

NewTLSDialer returns a tls proxy dialer.

Types

type TLS

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

TLS .

func NewTLS

func NewTLS(s string, dialer proxy.Dialer) (*TLS, error)

NewTLS returns a tls proxy.

func (*TLS) Addr

func (s *TLS) Addr() string

Addr returns forwarder's address

func (*TLS) Dial

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

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

func (*TLS) DialUDP

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

DialUDP connects to the given address via the proxy.

func (*TLS) NextDialer

func (s *TLS) 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