Skip to content

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 19, 2013
1 parent 0a4ebc3 commit 42b8682
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 42b8682

Please sign in to comment.