libp2p / js-libp2p-tcp

JavaScript implementation of the TCP module that libp2p uses that implements the interface-transport spec
https://libp2p.io
Other
76 stars 40 forks source link

test: fix tests on node 18 #234

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

We need to specify the host name to connect. If we don't it defaults to localhost - it seems in node 17+ DNS resolution has changed to return IPv6 addresses by default which causes the connection to fail because the listener has only bound to an IPv4 address.