Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: fix dgram-bind-default-address on osx
Browse files Browse the repository at this point in the history
Allow the IPv4-mapped-as-IPv6 style address.
  • Loading branch information
isaacs committed Apr 22, 2013
1 parent 4bf1d10 commit 1d794ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/simple/test-dgram-bind-default-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() {

dgram.createSocket('udp6').bind(common.PORT + 1, common.mustCall(function() {
assert.equal(this.address().port, common.PORT + 1);
assert.equal(this.address().address, '::');
var address = this.address().address;
if (address === '::ffff:0.0.0.0')
address = '::';
assert.equal(address, '::');
this.close();
}));

0 comments on commit 1d794ec

Please sign in to comment.