Skip to content

Commit

Permalink
Merge pull request #35028 from nextcloud/fix/dns-pin-middleware-throw…
Browse files Browse the repository at this point in the history
…s-public-ip

Fix DNS Pin Middleware throwing for public IPs
  • Loading branch information
st3iny authored Nov 8, 2022
2 parents 175ac79 + ce25943 commit ad77bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Http/Client/DnsPinMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function addDnsPinning() {
$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');
}
Expand Down

0 comments on commit ad77bf4

Please sign in to comment.