Skip to content

Commit

Permalink
Update webRequest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
claustromaniac committed Jan 22, 2019
1 parent c0273c8 commit 3900421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bg/webRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function IPinRange(ip, min, max) {

function isReservedAddress(str) {
const addr = str.split('.');
if (addr.length !== 4) return;
if (addr.length !== 4) return addr.length == 1; // no dots = loopback or the like
for (const part of addr) {
if (Number.isNaN(+part) || part < 0 || part > 255) return;
}
Expand Down

0 comments on commit 3900421

Please sign in to comment.