Skip to content

Avoid using localhost for proxies#132

Open
k3a wants to merge 1 commit intoanthropic-experimental:mainfrom
k3a:fix-localhost
Open

Avoid using localhost for proxies#132
k3a wants to merge 1 commit intoanthropic-experimental:mainfrom
k3a:fix-localhost

Conversation

@k3a
Copy link
Copy Markdown

@k3a k3a commented Feb 13, 2026

It seems some software will attempt to resolve localhost and fail:

$ go mod tidy -v

github.com/alexflint/go-arg@v1.5.1: verifying module: github.com/alexflint/go-arg@v1.5.1: Get "https://proxy.golang.org/sumdb/sum.golang.org/supported": proxyconnect tcp: dial tcp: lookup localhost on [::1]:53: read udp [::1]:39841->[::1]:53: read: connection refused

It is safer to use 127.0.0.1 directly instead of localhost where possible.

It seems some software will attempt to resolve localhost and fail:

```
$ go mod tidy -v

github.com/alexflint/go-arg@v1.5.1: verifying module: github.com/alexflint/go-arg@v1.5.1: Get "https://proxy.golang.org/sumdb/sum.golang.org/supported": proxyconnect tcp: dial tcp: lookup localhost on [::1]:53: read udp [::1]:39841->[::1]:53: read: connection refused
```

It is safer to use 127.0.0.1 directly instead of localhost where possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant