Issue #2554 - Block access to 0.0.0.0 on non-Windows OSes.

Resolves #2554.
This commit is contained in:
Moonchild 2024-08-09 15:56:21 +02:00 • committed by roytam1
commit d44b309966
3 changed files with 22 additions and 0 deletions

View file

@ -1885,6 +1885,16 @@ pref("network.dns.disablePrefetch", false);
// rejected before being given to DNS. RFC 7686
pref("network.dns.blockDotOnion", true);
// This preference controls whether to block access to 0.0.0.0
// to mitigate local access issues in *NIX network stacks.
#if defined(XP_WIN)
// Windows is not affected, so don't block it there.
// XXX: any other OSes not having this issue?
pref("network.dns.blockQuad0", false);
#else
pref("network.dns.blockQuad0", true);
#endif
// These domains are treated as localhost equivalent
pref("network.dns.localDomains", "");