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
net: WriteMsgUDPAddrPort should accept IPv4 destination addresses on IPv6 UDP sockets #52264
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
database64128
added a commit
to database64128/go
that referenced
this issue
Apr 10, 2022
WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets. An IPv4 target address will be converted to an IPv4-mapped IPv6 address. Fixes golang#52264.
Change https://go.dev/cl/399454 mentions this issue: |
database64128
added a commit
to database64128/swgp-go
that referenced
this issue
Apr 10, 2022
@database64128 maybe !addr.IsValid() ? |
CC @ianlancetaylor, @neild. |
database64128
added a commit
to database64128/go
that referenced
this issue
Apr 12, 2022
WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets. An IPv4 target address will be converted to an IPv4-mapped IPv6 address. Fixes golang#52264.
database64128
added a commit
to database64128/gibberish-sender-go
that referenced
this issue
Apr 12, 2022
Includes a workaround for golang/go#52264.
database64128
added a commit
to database64128/go
that referenced
this issue
Apr 12, 2022
WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets. An IPv4 target address will be converted to an IPv4-mapped IPv6 address. Fixes golang#52264.
database64128
added a commit
to database64128/go
that referenced
this issue
Apr 29, 2022
WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets. An IPv4 target address will be converted to an IPv4-mapped IPv6 address. Fixes golang#52264.
database64128
added a commit
to database64128/go
that referenced
this issue
Apr 29, 2022
WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets. An IPv4 target address will be converted to an IPv4-mapped IPv6 address. Fixes golang#52264.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Create an IPv6 UDP socket listening on
::
. CallWriteMsgUDPAddrPort
with an IPv4 target address.What did you expect to see?
The write succeeds, just like
WriteMsgUDP
.What did you see instead?
go/src/net/ipsock_posix.go
Lines 215 to 228 in db7183c
The check performed here should allow IPv4 as well.
The text was updated successfully, but these errors were encountered: