diff options
author | Robin Kluth <Commifreak@users.noreply.github.com> | 2024-02-19 11:19:58 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:34:34 +0100 |
commit | 25c0021137a2e80dc83a13e814ed4869ecb62782 (patch) | |
tree | d56454bf333faef3bf374b06ad48c6899eef8891 /lib/private | |
parent | d70cd5add23b66a5009c492727002c19db431b95 (diff) | |
download | nextcloud-server-25c0021137a2e80dc83a13e814ed4869ecb62782.tar.gz nextcloud-server-25c0021137a2e80dc83a13e814ed4869ecb62782.zip |
Log Host/IP in `LocalServerException` for `Host violates local access rules`
Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Http/Client/DnsPinMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php index aecccc6ce97..80454010a29 100644 --- a/lib/private/Http/Client/DnsPinMiddleware.php +++ b/lib/private/Http/Client/DnsPinMiddleware.php @@ -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; } |