From 6a042f152b513bbf5b3c8623ea3fbe2574ac0e24 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 17 Sep 2024 10:26:40 -0400 Subject: [PATCH] Ignore browser-provided 0.0.0.0 ip address when DNS is proxied Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3379 --- platform/firefox/vapi-background-ext.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/firefox/vapi-background-ext.js b/platform/firefox/vapi-background-ext.js index 5d3ff8c5d..7fdc3dd55 100644 --- a/platform/firefox/vapi-background-ext.js +++ b/platform/firefox/vapi-background-ext.js @@ -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';