Package proxydial provides a safer equivalent to Go's builtin net.Dial, that you can use if you're acting as a proxy (or in any way making http requests to URLs you don't trust).
It prevents connections to internal IP addresses, which can cause severe vulnerabilities.
go get github.com/superhuman/proxydial
See GoDoc for usage documentation.
proxydial is made available under the MIT license. See LICENSE.mit for details.
Bug reports and feature requests are welcome. If you think you've found a security vulnerability, please email me directly.