Fix DNS Pin Middleware throwing for public IPs

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/35028/head
Christoph Wurst 2 years ago
parent 175ac79f97
commit ce259435c2
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8

@ -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…
Cancel
Save