Skip to content

Commit 42b8682

Browse files
committed
test: fix dgram-bind-default-address on osx
Allow the IPv4-mapped-as-IPv6 style address.
1 parent 0a4ebc3 commit 42b8682

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/simple/test-dgram-bind-default-address.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() {
3131

3232
dgram.createSocket('udp6').bind(common.PORT + 1, common.mustCall(function() {
3333
assert.equal(this.address().port, common.PORT + 1);
34-
assert.equal(this.address().address, '::');
34+
var address = this.address().address;
35+
if (address === '::ffff:0.0.0.0')
36+
address = '::';
37+
assert.equal(address, '::');
3538
this.close();
3639
}));

0 commit comments

Comments
 (0)