Open djtm opened 6 years ago
It should work by default with the http_proxy variable, but it seems it doesn't. https://golang.org/src/net/http/transport.go#L35
e.g. it does not resolve IPs via socks:
[ERROR] banner-grab: Could not connect to remote host https://www.nytimes3xbfgragh.onion/: Get https://www.nytimes3xbfgragh.onion/: dial tcp: lookup www.nytimes3xbfgragh.onion on ...:53: no such host
The fix should be as easy as this: https://godoc.org/golang.org/x/net/proxy#FromEnvironment
feature request: allow scanning via socks5 proxy: https://github.com/golang/net/blob/master/internal/socks/client.go