proxy

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {

	// Settings
	OutputHex bool
	// contains filtered or unexported fields
}

Proxy - Manages a Proxy connection, piping data between local and remote.

func New

func New(lconn *net.TCPConn, laddr, raddr *net.TCPAddr) *Proxy

New - Create a new Proxy instance. Takes over local connection passed in, and closes it when finished.

func NewTLSUnwrapped

func NewTLSUnwrapped(lconn *net.TCPConn, laddr, raddr *net.TCPAddr, addr string) *Proxy

NewTLSUnwrapped - Create a new Proxy instance with a remote TLS server for which we want to unwrap the TLS to be able to connect without encryption locally

func (*Proxy) Start

func (p *Proxy) Start()

Start - open connection to remote and start proxying data.

Jump to

Keyboard shortcuts

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