elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.01k stars 1.09k forks source link

Support for SOCKS5 upstream proxy #112

Open j16sdiz opened 9 years ago

j16sdiz commented 9 years ago

Want to use this with a SOCKS5 upstream proxy Maybe some method to use alternative dialer ?

This have a dialer for SOCKS5: https://godoc.org/golang.org/x/net/proxy

elazarl commented 9 years ago

You have proxy.Tr.Dial, and proxy.ConnectDial which you can override for a custom dialer.

On Thu, Jun 25, 2015 at 9:50 AM Daniel Cheng (鄭郁邦) notifications@github.com wrote:

Want to use this with a SOCKS5 upstream proxy Maybe some method to use alternative dialer ?

This have a dialer for SOCKS5: https://godoc.org/golang.org/x/net/proxy

— Reply to this email directly or view it on GitHub https://github.com/elazarl/goproxy/issues/112.