Skip to content

Commit

Permalink
Fix bug in IPv6.matches
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoofsKelvin committed Mar 26, 2018
1 parent b5b5e52 commit 78b87c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class IPv6 implements IPMatch {
if (!real) throw new Error('The given value is not a valid IP');
if (!(real instanceof IPv6)) return false;
for (let i = 0; i < 8; i += 1) {
const given = this.WTN(real.parts[i]);
const given = real.parts[i];
const wanted = this.parts[i];
if (wanted !== -1 && given !== wanted) return false;
}
Expand Down

0 comments on commit 78b87c2

Please sign in to comment.