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

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';