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 20, 2019
1 parent 3f8e5f2 commit c48f1b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bg/webRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ browser.webRequest.onBeforeRequest.addListener(d => {
if (
!settings.ignored[url.hostname] &&
!settings.whitelist[url.hostname] &&
url.hostname !== 'localhost' &&
url.hostname !== 'loopback' &&
url.hostname.includes('.') && // leave out loopback & private addresses
!/^1(?:(?:92\.168|(?:0|27|72)\.\d{1,3}))\.\d{1,3}\.\d{1,3}$/.test(url.hostname)
) {
processed.add(url.hostname);
Expand Down

0 comments on commit c48f1b6

Please sign in to comment.