From 622fd2a4d4b0c6c4d551bda6915611047a9f32e0 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Fri, 22 May 2015 22:00:23 +0800 Subject: [PATCH] Ignore 127.0.0.1 in web request monitor. Fix #474. --- omega-target-chromium-extension/src/web_request_monitor.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/omega-target-chromium-extension/src/web_request_monitor.coffee b/omega-target-chromium-extension/src/web_request_monitor.coffee index c9e7b707..6c0cefb6 100644 --- a/omega-target-chromium-extension/src/web_request_monitor.coffee +++ b/omega-target-chromium-extension/src/web_request_monitor.coffee @@ -89,6 +89,8 @@ module.exports = class WebRequestMonitor return if req.error.indexOf('net::ERR_FILE_') == 0 return if req.url.indexOf('file:') == 0 return if req.url.indexOf('chrome') == 0 + # Some ad-blocking extensions may redirect requests to 127.0.0.1. + return if req.url.indexOf('://127.0.0.1') > 0 return unless reqInfo if req.error == 'net::ERR_ABORTED' if reqInfo.timeoutCalled and not reqInfo.noTimeout