mirror of https://github.com/gorhill/uBlock.git
Discard `::` from parsed hosts files
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/800
This commit is contained in:
parent
0356e91ccb
commit
e98a4b1ace
|
@ -827,7 +827,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
|||
const reIsWhitespaceChar = /\s/;
|
||||
const reMaybeLocalIp = /^[\d:f]/;
|
||||
const reIsLocalhostRedirect = /\s+(?:0\.0\.0\.0|broadcasthost|localhost|local|ip6-\w+)\b/;
|
||||
const reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1|fe80::1%lo0)/;
|
||||
const reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1?|fe80::1%lo0)\s+/;
|
||||
const lineIter = new this.LineIterator(this.processDirectives(rawText));
|
||||
|
||||
while ( lineIter.eot() === false ) {
|
||||
|
|
Loading…
Reference in New Issue