go-tproxy icon indicating copy to clipboard operation
go-tproxy copied to clipboard

Missing DialTCP function

Open elico opened this issue 7 years ago • 2 comments

There is no DialTCP function which can create arbitrary tproxy connections. It can be used in HTTP proxies with a customized http.client .

elico avatar Oct 30 '18 03:10 elico

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)?

KatelynHaworth avatar Oct 30 '18 03:10 KatelynHaworth

@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

elico avatar Oct 30 '18 04:10 elico