proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConn

func CopyConn(name string, dst io.Writer, src io.Reader, stdoutMutex *sync.Mutex)

func PrintByteArray

func PrintByteArray(bytes []byte)

func PrintTLSConnState

func PrintTLSConnState(conn *tls.Conn)

Types

type TCPProxy

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

func NewTCPProxy

func NewTCPProxy(localPort uint, localTLS, localZip bool, remoteAddr string, remoteTLS, remoteZip bool, localCrt, localKey, remoteCrt, peerCrt string, logData bool) (*TCPProxy, error)

func (*TCPProxy) Run

func (p *TCPProxy) Run() error

Jump to

Keyboard shortcuts

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