Skip to content

Commit 1d794ec

Browse files
committed
test: fix dgram-bind-default-address on osx
Allow the IPv4-mapped-as-IPv6 style address.
1 parent 4bf1d10 commit 1d794ec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
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)