Skip to content

Commit f64d703

Browse files
committed
fix quirks in parsing of Steven Black's hosts files
1 parent 5c82bf6 commit f64d703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/js/storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
staticExtFilteringEngine = this.staticExtFilteringEngine,
798798
reIsWhitespaceChar = /\s/,
799799
reMaybeLocalIp = /^[\d:f]/,
800-
reIsLocalhostRedirect = /\s+(?:0\.0\.0\.0|broadcasthost|ip6-all(?:nodes|routers)|local|localhost|localhost\.localdomain)\b/,
800+
reIsLocalhostRedirect = /\s+(?:0\.0\.0\.0|broadcasthost|localhost|local|ip6-\w+)\b/,
801801
reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1|fe80::1%lo0)/,
802802
line, c, pos,
803803
lineIter = new this.LineIterator(this.processDirectives(rawText));

0 commit comments

Comments
 (0)