mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 07:13:23 -04:00
Merge pull request #35028 from nextcloud/fix/dns-pin-middleware-throws-public-ip
Fix DNS Pin Middleware throwing for public IPs
This commit is contained in:
commit
ad77bf4030
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue