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
1 changed files with 1 additions and 1 deletions

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