diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-11-08 18:44:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 18:44:50 +0300 |
commit | ad77bf40301955e4038cd379121337ec4d398dff (patch) | |
tree | 52dd1a49855ed7a134bfbed1e896479538e94a37 | |
parent | 175ac79f97aaed351a192ba18f1d10e0ec939c49 (diff) | |
parent | ce259435c222c168e4e3b68e7ea020c50bb413e2 (diff) |
Merge pull request #35028 from nextcloud/fix/dns-pin-middleware-throws-public-ip
Fix DNS Pin Middleware throwing for public IPs
-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'); } |