modulepackage
0.0.0-20250222171855-c4b9df066048
Repository: https://github.com/inetaf/tcpproxy.git
Documentation: pkg.go.dev
# README
tcpproxy
For library usage, see https://pkg.go.dev/github.com/inetaf/tcpproxy/
For CLI usage, see https://github.com/inetaf/tcpproxy/blob/master/cmd/tlsrouter/README.md
# Functions
To is shorthand way of writing &tcpproxy.DialProxy{Addr: addr}.
UnderlyingConn returns c.Conn if c of type *Conn, otherwise it returns c.
# Structs
Conn is an incoming connection that has had some bytes read from it to determine how to route the connection.
DialProxy implements Target by dialing a new connection to Addr and then proxying data back and forth.
Proxy is a proxy.
TargetListener implements both net.Listener and Target.
# Interfaces
Target is what an incoming matched connection is sent to.
# Type aliases
Matcher reports whether hostname matches the Matcher's criteria.
SNITargetFunc is the func callback used by Proxy.AddSNIRouteFunc.