Go package to detect the proxy settings on Windows platform.
The settings are read from the registry (CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
).
You can either get the settings via GetConf
or set the environment variables via OverrideEnvWithStaticProxy
.
If you want to use it system wide, you should use an init
function:
func init() {
ieproxy.OverrideEnvWithStaticProxy()
http.DefaultTransport.(*http.Transport).Proxy = http.ProxyFromEnvironment
}
For more informations, take a look at the documentation