mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
Fix DNS Pin Middleware throwing for public IPs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
175ac79f97
commit
ce259435c2
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