test: apply Linux workaround to Linux only
Do not try Ubuntu/SUSE/Debian-specific hostnames for IPv6 localhost unless we are on Linux. Fixes: https://github.com/nodejs/node/issues/4546 PR-URL: https://github.com/nodejs/node/pull/5471 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
32a2a6049d
commit
ad36ea56fc
@ -80,18 +80,21 @@ var opensslCli = null;
|
|||||||
var inFreeBSDJail = null;
|
var inFreeBSDJail = null;
|
||||||
var localhostIPv4 = null;
|
var localhostIPv4 = null;
|
||||||
|
|
||||||
exports.localIPv6Hosts = [
|
exports.localIPv6Hosts = ['localhost'];
|
||||||
// Debian/Ubuntu
|
if (process.platform === 'linux') {
|
||||||
'ip6-localhost',
|
exports.localIPv6Hosts = [
|
||||||
'ip6-loopback',
|
// Debian/Ubuntu
|
||||||
|
'ip6-localhost',
|
||||||
|
'ip6-loopback',
|
||||||
|
|
||||||
// SUSE
|
// SUSE
|
||||||
'ipv6-localhost',
|
'ipv6-localhost',
|
||||||
'ipv6-loopback',
|
'ipv6-loopback',
|
||||||
|
|
||||||
// Typically universal
|
// Typically universal
|
||||||
'localhost',
|
'localhost',
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
Object.defineProperty(exports, 'inFreeBSDJail', {
|
Object.defineProperty(exports, 'inFreeBSDJail', {
|
||||||
get: function() {
|
get: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user