ip: fix ipv4 map check.

This commit is contained in:
Christopher Jeffrey 2016-12-27 12:32:39 -08:00
parent 1d4fbc1833
commit d26204479a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -199,7 +199,7 @@ IP.isMapped = function isMapped(buf) {
assert(Buffer.isBuffer(buf));
assert(buf.length === 16);
if (buf[10] !== 0xff && buf[11] !== 0xff)
if (buf[10] !== 0xff || buf[11] !== 0xff)
return false;
for (i = 0; i < 10; i++) {