From a7c85f4de891981f75b385289051486599ce0904 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 29 Aug 2024 09:01:03 +0200 Subject: [PATCH] Private network access content settings: 0.0.0.0 is considered to be private --- build/patches/Private-network-access-content-settings.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/patches/Private-network-access-content-settings.patch b/build/patches/Private-network-access-content-settings.patch index bcc0ff95..5da46d43 100644 --- a/build/patches/Private-network-access-content-settings.patch +++ b/build/patches/Private-network-access-content-settings.patch @@ -234,7 +234,7 @@ diff --git a/services/network/private_network_access_checker.cc b/services/netwo (target_address_space == mojom::IPAddressSpace::kLocal || target_address_space == mojom::IPAddressSpace::kPrivate); + std::string host = url.host(); -+ if (IsReservedIPAddress(host) || ++ if (IsReservedIPAddress(host) || host == "0.0.0.0" || + host == "[::1]" || net::HostStringIsLocalhost(host)) { + need_permission = true; + }