We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd9d2c commit 102d4cfCopy full SHA for 102d4cf
2 files changed
lib/internal/net.js
@@ -94,7 +94,9 @@ function isLoopback(host) {
94
hostLower === 'localhost' ||
95
hostLower.startsWith('127.') ||
96
hostLower === '[::1]' ||
97
- hostLower === '[0:0:0:0:0:0:0:1]'
+ hostLower === '::1' ||
98
+ hostLower === '[0:0:0:0:0:0:0:1]' ||
99
+ hostLower === '0:0:0:0:0:0:0:1'
100
);
101
}
102
test/parallel/test-internal-net-isLoopback.js
@@ -10,7 +10,9 @@ const loopback = [
10
'127.0.0.255',
11
'127.1.2.3',
12
'[::1]',
13
+ '::1',
14
'[0:0:0:0:0:0:0:1]',
15
+ '0:0:0:0:0:0:0:1',
16
];
17
18
const loopbackNot = [
0 commit comments