Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Add support for GOPROXY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Jul 9, 2024
1 parent bb8d0ad commit 4164081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/modproxy/modproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Proxies() []string {
if s := os.Getenv("GOPROXY"); s != "" {
for _, proxy := range strings.Split(s, ",") {
proxy = strings.TrimSpace(proxy)
if proxy != "direct" {
if proxy != "" && proxy != "direct" {
proxies = append(proxies, proxy)
}
}
Expand Down

0 comments on commit 4164081

Please sign in to comment.