1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-29 06:07:11 +02:00

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) { 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; const type = details.type;
if ( type === 'imageset' ) { if ( type === 'imageset' ) {
details.type = 'image'; details.type = 'image';