net: can't Dial("tcp6", IPv4-mapped-IPv6 address) #47763
CL 32100 added a restriction to IP address resolution requiring that IP addresses acquired for IPv6 networks not be IPv4-mapped-IPv6 addresses.
For example, the following fails:
CL 32100 states that this behavior is intentional, but perhaps worth reconsideration:
I'm opening this issue to reconsider this behavior.
I'm not certain that the fact that IPv4-mapped IPv6 addresses are not expected to appear on the wire is sufficient justification for excluding them from address resolution when the user explicitly tries to dial one. A protocol stack which uses these addresses internally (but not on the wire) may still expect to receive them from the user. In addition, even if the address is not usable by the IPv6 stack, I think that providing the address to the OS and permitting it to return an error is less surprising than dropping the address entirely.
The text was updated successfully, but these errors were encountered: