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.
Click to show internal directories.
Click to hide internal directories.