From ce259435c222c168e4e3b68e7ea020c50bb413e2 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 8 Nov 2022 14:18:05 +0100 Subject: Fix DNS Pin Middleware throwing for public IPs Signed-off-by: Christoph Wurst --- lib/private/Http/Client/DnsPinMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Http') diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php index 294a23f9de1..c6a58972fdd 100644 --- a/lib/private/Http/Client/DnsPinMiddleware.php +++ b/lib/private/Http/Client/DnsPinMiddleware.php @@ -134,7 +134,7 @@ class DnsPinMiddleware { $curlResolves["$hostName:$port"] = []; foreach ($targetIps as $ip) { - if (!$this->ipAddressClassifier->isLocalAddress($ip)) { + if ($this->ipAddressClassifier->isLocalAddress($ip)) { // TODO: continue with all non-local IPs? throw new LocalServerException('Host violates local access rules'); } -- cgit v1.2.3