Skip to content

oliverpool/go-ieproxy

 
 

Repository files navigation

ieproxy

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.6%
  • JavaScript 3.4%