diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-11-08 14:18:05 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-11-08 14:18:05 +0100 |
commit | ce259435c222c168e4e3b68e7ea020c50bb413e2 (patch) | |
tree | 52dd1a49855ed7a134bfbed1e896479538e94a37 /lib/private/Http | |
parent | 175ac79f97aaed351a192ba18f1d10e0ec939c49 (diff) | |
download | nextcloud-server-ce259435c222c168e4e3b68e7ea020c50bb413e2.tar.gz nextcloud-server-ce259435c222c168e4e3b68e7ea020c50bb413e2.zip |
Fix DNS Pin Middleware throwing for public IPs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Http')
-rw-r--r-- | lib/private/Http/Client/DnsPinMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'); } |