]> Cypherpunks.ru repositories - gostls13.git/commit
net: fix WriteMsgUDPAddrPort addr handling
authordatabase64128 <free122448@hotmail.com>
Fri, 29 Apr 2022 17:29:58 +0000 (17:29 +0000)
committerIan Lance Taylor <iant@google.com>
Tue, 26 Jul 2022 20:27:23 +0000 (20:27 +0000)
commitfaf4e97200df9415d55b04924ce77599f9e6fdfa
tree21841bb043106d6906901da2f504ee86463af7d9
parentcaa225dd297a467b0d720d5f1d63050e49061ad3
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.

Fixes #52264.

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>
src/net/ipsock_posix.go
src/net/udpsock_test.go