tls

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 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, d proxy.Dialer) (proxy.Dialer, error)

NewTLSDialer returns a tls proxy dialer.

func NewTLSServer added in v0.6.9

func NewTLSServer(s string, p proxy.Proxy) (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, d proxy.Dialer, p proxy.Proxy) (*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 listens on server's addr and serves connections.

func (*TLS) Serve added in v0.6.9

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

Serve serves a connection.

Jump to

Keyboard shortcuts

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