Ignore browser-provided 0.0.0.0 ip address when DNS is proxied

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3379
This commit is contained in:
Raymond Hill 2024-09-17 10:26:40 -04:00
parent d238baa374
commit 6a042f152b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ vAPI.Net = class extends vAPI.Net {
}
normalizeDetails(details) {
// https://github.com/uBlockOrigin/uBlock-issues/issues/3379
if ( details.proxyInfo?.proxyDNS && details.ip === '0.0.0.0' ) {
details.ip = null;
}
const type = details.type;
if ( type === 'imageset' ) {
details.type = 'image';