[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, 1 Sep 2022 16:33:49 +0000 (17:33 +0100)
commit901ef74848af5533d52dce90278ce7e6a710812b
tree1734c72ad3b6bfb8c8531c2db607b20aa6c38f2d
parent802d4d0597642abbe38b0512c4374e32eca38ebe
[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