Claude Bot
a1495cf73d
fix(node:net): remove ADDRCONFIG hint to fix IPv4/IPv6 mismatch
...
The dns.ADDRCONFIG hint was causing localhost connections to fail when
servers bind to IPv6 (::1) but the client resolves to IPv4 (127.0.0.1).
On systems where IPv6 is configured but ADDRCONFIG reports IPv4-only,
the hint filters out IPv6 addresses, causing ECONNREFUSED errors when
connecting to servers listening on localhost.
Removing ADDRCONFIG allows DNS to return both IPv6 and IPv4 addresses,
and the autoSelectFamily logic tries both, successfully connecting to
IPv6-bound servers.
Fixes 8 test failures:
- net.Socket read > long message > should work with .connect(port)
- net.Socket read > long message > should work with .connect(port, listener)
- net.Socket read > long message > should work with .connect(port, host, listener)
- net.Socket read > long message > should support onread callback
- net.Socket read > short message > should work with .connect(port)
- net.Socket read > short message > should work with .connect(port, listener)
- net.Socket read > short message > should work with .connect(port, host, listener)
- net.Socket read > short message > should support onread callback
Test results: 29 pass / 1 skip / 2 fail (was 21 pass / 1 skip / 10 fail)
The 2 remaining failures are pre-existing bugs unrelated to this change.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-20 00:21:30 +00:00
..
2025-10-03 17:10:28 -07:00
2025-07-22 17:51:38 -07:00
2025-10-06 06:40:15 -07:00
2025-10-18 20:49:57 -07:00
2025-08-11 20:19:34 -07:00
2025-10-18 17:04:47 -07:00
2025-07-22 17:51:38 -07:00
2025-10-18 18:40:31 -07:00
2025-10-18 20:49:57 -07:00
2025-10-15 17:38:02 -07:00
2025-10-18 18:14:01 -07:00
2025-10-10 03:48:04 -07:00
2025-09-14 04:14:48 -07:00
2025-10-02 14:11:29 -07:00
2025-10-18 17:04:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-10-11 19:21:14 -07:00
2025-10-14 19:46:47 -07:00
2025-10-10 22:49:45 -07:00
2025-10-13 11:19:17 -07:00
2025-10-05 17:23:59 -07:00
2025-10-09 19:04:41 -07:00
2025-10-20 00:21:30 +00:00
2025-07-21 13:26:47 -07:00
2025-10-10 03:48:04 -07:00
2025-10-03 17:10:28 -07:00
2025-10-14 19:48:25 -07:00
2025-10-03 17:10:28 -07:00
2025-10-08 18:00:38 -07:00
2025-10-03 16:13:06 -07:00
2025-10-14 20:51:34 -07:00
2025-10-14 19:48:25 -07:00
2025-09-09 20:41:10 -07:00
2025-10-08 18:00:38 -07:00
2025-10-14 17:43:38 -07:00
2025-10-06 19:47:24 -07:00
2025-10-18 17:04:47 -07:00
2025-10-10 03:48:04 -07:00
2025-10-16 21:52:22 -04:00
2025-07-21 13:26:47 -07:00
2025-09-26 13:47:24 -07:00
2025-10-18 17:04:47 -07:00
2025-06-04 19:41:26 -07:00
2025-10-12 11:29:48 -07:00
2024-10-08 23:04:05 -07:00
2025-10-04 02:17:55 -07:00
2025-09-26 13:47:24 -07:00
2025-09-27 00:45:29 -07:00
2025-05-14 18:42:42 -07:00
2025-07-29 19:35:46 -07:00
2025-10-18 20:49:57 -07:00
2025-07-22 17:51:38 -07:00
2025-09-30 05:26:32 -07:00
2025-04-17 14:17:08 -07:00
2025-07-22 17:51:38 -07:00
2025-09-03 18:57:39 -07:00
2025-07-22 17:51:38 -07:00
2025-07-20 23:04:17 -07:00
2025-10-14 19:48:25 -07:00
2025-10-14 19:48:25 -07:00
2025-10-06 19:48:16 -07:00
2025-06-12 14:20:28 -07:00
2025-09-18 19:37:24 -07:00
2025-07-21 13:26:47 -07:00
2025-10-14 16:33:30 -07:00
2025-10-15 17:38:02 -07:00
2025-09-26 15:19:45 -07:00
2025-10-08 18:00:38 -07:00
2025-07-31 00:56:50 -07:00
2025-08-11 20:19:34 -07:00
2025-10-12 14:00:11 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-26 22:21:00 -07:00
2025-09-19 02:06:02 -07:00
2025-07-21 13:26:47 -07:00
2025-10-14 19:48:25 -07:00
2025-07-28 00:13:17 -07:00
2025-08-22 23:04:58 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-08-14 18:03:26 -07:00
2025-10-07 12:07:29 -07:00
2025-05-08 23:22:16 -07:00
2024-12-10 12:43:17 -08:00
2025-10-10 03:48:04 -07:00
2025-10-14 16:33:30 -07:00
2025-08-23 06:55:30 -07:00
2025-10-04 00:31:47 -07:00
2025-09-24 00:47:52 -07:00
2025-10-02 14:11:29 -07:00
2025-09-19 02:38:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-09-09 20:41:10 -07:00
2025-10-06 05:39:22 -07:00
2025-07-09 00:19:57 -07:00
2025-10-14 20:51:34 -07:00
2025-07-22 17:51:38 -07:00
2025-08-23 06:55:30 -07:00
2025-07-22 17:51:38 -07:00
2025-10-10 03:48:04 -07:00
2025-10-15 14:31:27 -07:00
2025-10-18 20:49:57 -07:00
2024-12-10 12:43:17 -08:00
2025-09-11 23:29:53 -07:00
2025-03-26 23:57:10 -07:00
2025-10-14 20:51:34 -07:00
2025-07-22 17:51:38 -07:00
2025-10-04 01:56:42 -07:00
2025-02-18 10:38:37 -08:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-07-22 17:51:38 -07:00
2025-10-18 18:14:01 -07:00
2025-10-03 17:10:28 -07:00
2025-07-22 17:51:38 -07:00
2025-09-14 04:14:48 -07:00
2025-10-14 20:51:34 -07:00
2025-10-03 17:13:22 -07:00
2025-07-22 17:51:38 -07:00
2025-09-12 23:59:24 -07:00
2025-09-30 00:10:15 -07:00
2025-09-25 18:03:27 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-09-26 15:15:58 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-09-26 22:21:00 -07:00
2025-09-26 22:21:00 -07:00
2025-09-03 15:40:44 -07:00
2025-09-22 19:28:26 -07:00
2025-07-21 13:26:47 -07:00
2025-10-11 08:23:25 -07:00
2025-07-21 13:26:47 -07:00
2025-10-10 03:48:04 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-10-04 04:57:29 -07:00
2025-10-14 16:33:30 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-02-01 01:11:02 -08:00
2025-09-19 02:06:02 -07:00
2025-10-03 17:10:28 -07:00
2025-07-21 13:26:47 -07:00
2025-10-14 19:48:25 -07:00
2025-07-21 13:26:47 -07:00
2025-10-03 02:38:55 -07:00
2025-10-14 16:33:30 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 20:19:34 -07:00
2025-07-20 23:04:17 -07:00
2025-08-23 06:55:30 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 18:57:39 -07:00