mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: remove common.localhostIPv6
common.localhostIPv6 is almost entirely unused and is unnecessary. Remove it. PR-URL: https://github.com/nodejs/node/pull/34373 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
@@ -776,8 +776,6 @@ const common = {
|
||||
return localhostIPv4;
|
||||
},
|
||||
|
||||
get localhostIPv6() { return '::1'; },
|
||||
|
||||
// opensslCli defined lazily to reduce overhead of spawnSync
|
||||
get opensslCli() {
|
||||
if (opensslCli !== null) return opensslCli;
|
||||
|
||||
@@ -14,10 +14,10 @@ const optionsIPv4 = {
|
||||
};
|
||||
|
||||
const optionsIPv6 = {
|
||||
host: common.localhostIPv6,
|
||||
host: '::1',
|
||||
port: common.PORT + 2,
|
||||
localPort: common.PORT + 3,
|
||||
localAddress: common.localhostIPv6
|
||||
localAddress: '::1',
|
||||
};
|
||||
|
||||
function onError(err, options) {
|
||||
|
||||
Reference in New Issue
Block a user