[PATCH] net, dns: socket should handle its output as input
authorAdam Majer <amajer@suse.de>
Mon, 1 Aug 2022 11:16:23 +0000 (13:16 +0200)
committerJérémy Lal <kapouer@melix.org>
Thu, 4 Aug 2022 15:32:43 +0000 (16:32 +0100)
commit36ed4a3f4eeaa96f926cd4909ccaf72d7a461da4
tree0693021a3aa6f7778e7870947615c2201419e141
parent033c765550fda03894466e44c65d76c8f1ed8f42
[PATCH] net, dns: socket should handle its output as input

As a consequence of https://github.com/nodejs/node/issues/43014 ,
server sockets and others, once connected, report string family
names. But when feeding these to Socket.connect(), it passes
these to host resolution with a string for family while a numeric
family is expected internally. This results in wrong hints flags
to be set and resolution to fail.

As solution, is to add ability to handle both numeric and string
family names when doing lookup and connect.

Fixes: https://github.com/nodejs/node/issues/44003
Gbp-Pq: Topic build
Gbp-Pq: Name getaddrinfo_no_iface.patch
lib/net.js
test/parallel/parallel.status