Log Host/IP in `LocalServerException` for `Host violates local access rules`

Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
pull/43650/head
Robin Kluth 3 months ago committed by John Molakvoæ
parent d70cd5add2
commit 25c0021137

@ -147,7 +147,7 @@ class DnsPinMiddleware {
foreach ($targetIps as $ip) {
if ($this->ipAddressClassifier->isLocalAddress($ip)) {
// TODO: continue with all non-local IPs?
throw new LocalServerException('Host violates local access rules');
throw new LocalServerException('Host "'.$ip.'" violates local access rules');
}
$curlResolves["$hostName:$port"][] = $ip;
}

Loading…
Cancel
Save