aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/parallel/test-dgram-address.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-address.js b/test/parallel/test-dgram-address.js
index 3fad9cf6c6..c1f71ae8ab 100644
--- a/test/parallel/test-dgram-address.js
+++ b/test/parallel/test-dgram-address.js
@@ -26,7 +26,7 @@ const dgram = require('dgram');
socket.bind(0, common.localhostIPv4);
}
-{
+if (common.hasIPv6) {
// IPv6 Test
const socket = dgram.createSocket('udp6');
const localhost = '::1';