Skip to content

net: TestDialGoogle uses IPv4 address with leading zeros #73378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rittneje opened this issue Apr 14, 2025 · 2 comments
Open

net: TestDialGoogle uses IPv4 address with leading zeros #73378

rittneje opened this issue Apr 14, 2025 · 2 comments
Labels
BugReport Issues describing a possible bug in the Go implementation. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@rittneje
Copy link
Contributor

rittneje commented Apr 14, 2025

Go version

go version go1.23.8 darwin/amd64

Output of go env in your module/workspace:

n/a

What did you do?

go test net -run=TestDialGoogle -tags=netgo -ipv4 -ipv6 -v

What did you see happen?

external_test.go:79: dial tcp: lookup 064.233.180.147: no such host

What did you expect to see?

It should not have tried to dial an IPv4 address with leading zeroes in a component, as that has been unsupported since Go 1.17.

"%03d.%03d.%03d.%03d:0080",

If this test is only supposed to be compatible with the cgo resolver, then it ought to have a guard clause for that.

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Apr 14, 2025
@prattmic
Copy link
Member

cc @neild

@prattmic prattmic added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 15, 2025
@prattmic prattmic added this to the Backlog milestone Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants