Ignore 127.0.0.1 in web request monitor. Fix #474.

This commit is contained in:
FelisCatus 2015-05-22 22:00:23 +08:00
parent 55fba179f0
commit 622fd2a4d4

View File

@ -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