tls

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: GPL-3.0 Imports: 7 Imported by: 3

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

func NewTLSServer added in v0.6.9

func NewTLSServer(s string, dialer proxy.Dialer) (proxy.Server, error)

NewTLSServer returns a tls transport layer before the real server

Types

type TLS

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

TLS struct

func NewTLS

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

NewTLS returns a tls proxy struct

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) ListenAndServe added in v0.6.9

func (s *TLS) ListenAndServe()

ListenAndServe .

func (*TLS) NextDialer

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

NextDialer returns the next dialer

func (*TLS) Serve added in v0.6.9

func (s *TLS) Serve(c net.Conn)

Serve serves requests

Jump to

Keyboard shortcuts

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