Fix DNS Pin Middleware throwing for public IPs

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2022-11-08 14:18:05 +01:00
parent 175ac79f97
commit ce259435c2
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -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');
}