Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
Proxy *tcpproxy.Proxy
DialProxy *tcpproxy.DialProxy
// contains filtered or unexported fields
}
Proxy is a TCP proxy. Wrapper arround https://github.com/inetaf/tcpproxy
func NewUnusedAddr ¶
NewUnusedAddr creates a new proxy instance on a unused random port.
func (*Proxy) CloseConnections ¶
func (p *Proxy) CloseConnections()
CloseConnections closes the currently active connections.
func (*Proxy) HandleConn ¶
HandleConn is used for hooking into github.com/inetaf/tcpproxy
func (*Proxy) ListenAddr ¶
ListenAddr returns the listen address.
Click to show internal directories.
Click to hide internal directories.