Skip to content

Commit 6a042f1

Browse files
committed
Ignore browser-provided 0.0.0.0 ip address when DNS is proxied
Related issue: uBlockOrigin/uBlock-issues#3379
1 parent d238baa commit 6a042f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/firefox/vapi-background-ext.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ vAPI.Net = class extends vAPI.Net {
9494
}
9595

9696
normalizeDetails(details) {
97+
// https://github.com/uBlockOrigin/uBlock-issues/issues/3379
98+
if ( details.proxyInfo?.proxyDNS && details.ip === '0.0.0.0' ) {
99+
details.ip = null;
100+
}
97101
const type = details.type;
98102
if ( type === 'imageset' ) {
99103
details.type = 'image';

0 commit comments

Comments
 (0)