File: windows.go

package info (click to toggle)
golang-github-mattn-go-ieproxy 0.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// Package autoload automatically calls OverrideEnvWithStaticProxy,
// which writes new values to the `http_proxy`, `https_proxy` and `no_proxy` environment variables.
// The values are taken from the Windows Regedit
// import _ "github.com/mattn/go-ieproxy/autoload"
package autoload

import ieproxy "github.com/mattn/go-ieproxy"

func init() {
	ieproxy.OverrideEnvWithStaticProxy()
}