mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Issue #2554 - Follow-up: Also block [::] and [::0.0.0.0] IPv6 addresses.
This commit is contained in:
parent
fad481b612
commit
dd4e060135
1 changed files with 3 additions and 1 deletions
|
|
@ -704,7 +704,9 @@ nsDNSService::PreprocessHostname(bool aLocalDomain,
|
|||
|
||||
// Block access to the "this machine" address.
|
||||
if (mBlockQuad0 &&
|
||||
aInput.EqualsASCII("0.0.0.0")) {
|
||||
(aInput.EqualsLiteral("0.0.0.0") ||
|
||||
aInput.EqualsLiteral("::") ||
|
||||
aInput.EqualsLiteral("::0.0.0.0"))) {
|
||||
return NS_ERROR_UNKNOWN_HOST;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue