]> Cypherpunks repositories - gostls13.git/commit
net: correct address when listening on IPv4zero tcp4/udp4 on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Sun, 5 Jul 2020 05:03:16 +0000 (01:03 -0400)
committerDavid du Colombier <0intro@gmail.com>
Tue, 7 Jul 2020 23:03:29 +0000 (23:03 +0000)
commitc769a47291249bd0901d20b58f10ba62c444c926
tree5652a77eccc486c6e9e5ade4ee0b811a86f3718a
parent12debf4a6574c8fa521e76629f20f8ff77a35e0e
net: correct address when listening on IPv4zero tcp4/udp4 on Plan 9

Since Plan 9 doesn't allow us to listen on 0.0.0.0, the Listener
address that's read in from /net is the IPv6 address ::. Convert
this address to 0.0.0.0 when the network is tcp4 or udp4.

Fixes #40045

Change-Id: Icfb69b823e5b80603742d23c3762a812996fe43f
Reviewed-on: https://go-review.googlesource.com/c/go/+/240918
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/net/ipsock_plan9.go
src/net/ipsock_plan9_test.go [new file with mode: 0644]