]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] net: fix WriteMsgUDPAddrPort addr handling
authordatabase64128 <free122448@hotmail.com>
Fri, 29 Apr 2022 17:29:58 +0000 (17:29 +0000)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 26 Aug 2022 18:28:14 +0000 (18:28 +0000)
commitbf812b32b0b4105342af981330a4ffd50a2fb28e
tree31bee31bc3f67b8fb1a4ed08eedf7b8023792457
parent27ced96c8d4709eeb57aa5dde31acff7e51a8a4a
[release-branch.go1.18] net: fix WriteMsgUDPAddrPort addr handling

WriteMsgUDPAddrPort should accept IPv4 target addresses on IPv6 UDP sockets.
An IPv4 target address will be converted to an IPv4-mapped IPv6 address.

Include the change in CL 420775 to also skip the test on DragonflyBSD.

Updates #52264.
Fixes #54074.

Change-Id: Ib9ed4c61fa1289ae7bbc8c4c9de1a9951b647ec0
GitHub-Last-Rev: 6776fdb0a76faa71ebde58f5143fb1ffb3112adf
GitHub-Pull-Request: golang/go#52265
Reviewed-on: https://go-review.googlesource.com/c/go/+/399454
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/425488
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/ipsock_posix.go
src/net/udpsock_test.go