go-tproxy
go-tproxy copied to clipboard
Missing DialTCP function
There is no DialTCP function which can create arbitrary tproxy connections. It can be used in HTTP proxies with a customized http.client .
I assume you mean a plain old Dial(network, addr string) (net.Conn, error) or a DialContext(ctx context.Context, network, addr string) (net.Conn, error)?
@LiamHaworth more or less. It should have both the source and destination addresses. I wrote: https://github.com/elico/go-linux-tproxy/blob/master/go-linux-tproxy.go#L145