modulepackage
0.0.0-20241214112257-96d08deaf876
Repository: https://github.com/patdowney/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 a 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
No description provided by the author
Matcher reports whether hostname matches the Matcher's criteria.
No description provided by the author
No description provided by the author
SNITargetFunc is the func callback used by Proxy.AddSNIRouteFunc.