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 3c67de3 commit 9743216
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 @@ -29,7 +29,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 9743216

Please sign in to comment.