badproxy

package
v0.0.0-...-6c44b69 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package badproxy contains a bad proxy. Specifically this proxy will read some bytes from the input and then close the connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CensoringProxy

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

CensoringProxy is a bad proxy

func NewCensoringProxy

func NewCensoringProxy() *CensoringProxy

NewCensoringProxy creates a new bad proxy

func (*CensoringProxy) Start

func (p *CensoringProxy) Start(address string) (net.Listener, error)

Start starts the bad proxy for TCP.

func (*CensoringProxy) StartTLS

func (p *CensoringProxy) StartTLS(address string) (net.Listener, *x509.Certificate, error)

StartTLS starts the bad proxy for TLS.

Jump to

Keyboard shortcuts

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