From 8f0d925bdffbcfdb1d3385273441ccdfea827bc7 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 11 Dec 2015 06:36:28 -0500 Subject: [PATCH] this fixes #1047 --- src/js/static-net-filtering.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index c40ea3eaf..096dffb44 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1574,6 +1574,12 @@ FilterParser.prototype.parse = function(raw) { s = '*'; } + // https://github.com/gorhill/uBlock/issues/1047 + // Hostname-anchored makes no sense if matching all requests. + if ( s === '*' ) { + this.hostnameAnchored = false; + } + // plain hostname? this.hostnamePure = this.hostnameAnchored && reHostnameRule.test(s);