From 26c2320e46e84ddff8e076e4c4162b58c82a05a2 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 9 Apr 2018 15:40:29 -0400 Subject: [PATCH] code review: improve compatibility with StevenBlack hosts files --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 6a1f722de..5cfea04fe 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -775,7 +775,7 @@ staticExtFilteringEngine = this.staticExtFilteringEngine, reIsWhitespaceChar = /\s/, reMaybeLocalIp = /^[\d:f]/, - reIsLocalhostRedirect = /\s+(?:broadcasthost|local|localhost|localhost\.localdomain)\b/, + reIsLocalhostRedirect = /\s+(?:0.0.0.0|broadcasthost|ip6-all(?:nodes|routers)|local|localhost|localhost\.localdomain)\b/, reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1|fe80::1%lo0)/, line, c, pos, lineIter = new this.LineIterator(this.processDirectives(rawText));