Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-11-08 16:18:05 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-11-08 16:18:05 +0300
commitce259435c222c168e4e3b68e7ea020c50bb413e2 (patch)
tree52dd1a49855ed7a134bfbed1e896479538e94a37
parent175ac79f97aaed351a192ba18f1d10e0ec939c49 (diff)
Fix DNS Pin Middleware throwing for public IPs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php2
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');
}