1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Discard :: from parsed hosts files

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/800
This commit is contained in:
Raymond Hill 2019-12-01 09:15:25 -05:00
parent 0356e91ccb
commit e98a4b1ace
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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