mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
Fix compatibility issue with hosts files
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/847 IP address `0` is a valid synonym of `0.0.0.0`.
This commit is contained in:
parent
0ae1e9b1fe
commit
f8ec54c635
1 changed files with 1 additions and 1 deletions
|
@ -828,7 +828,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)\s+/;
|
||||
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 a new issue