diff --git a/test/common.js b/test/common.js index 187d26acce..9691509935 100644 --- a/test/common.js +++ b/test/common.js @@ -80,18 +80,21 @@ var opensslCli = null; var inFreeBSDJail = null; var localhostIPv4 = null; -exports.localIPv6Hosts = [ - // Debian/Ubuntu - 'ip6-localhost', - 'ip6-loopback', - - // SUSE - 'ipv6-localhost', - 'ipv6-loopback', - - // Typically universal - 'localhost', -]; +exports.localIPv6Hosts = ['localhost']; +if (process.platform === 'linux') { + exports.localIPv6Hosts = [ + // Debian/Ubuntu + 'ip6-localhost', + 'ip6-loopback', + + // SUSE + 'ipv6-localhost', + 'ipv6-loopback', + + // Typically universal + 'localhost', + ]; +} Object.defineProperty(exports, 'inFreeBSDJail', { get: function() {