aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/DnsPinMiddleware.php
diff options
context:
space:
mode:
authorRobin Kluth <Commifreak@users.noreply.github.com>2024-02-19 14:26:42 +0100
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-24 11:34:34 +0100
commit414f8f1f2d9f04dfee2b94e5570b490f58f6e030 (patch)
tree19fbabc4a05099e5d9ca89c0fb55505691aa809c /lib/private/Http/Client/DnsPinMiddleware.php
parent25c0021137a2e80dc83a13e814ed4869ecb62782 (diff)
downloadnextcloud-server-414f8f1f2d9f04dfee2b94e5570b490f58f6e030.tar.gz
nextcloud-server-414f8f1f2d9f04dfee2b94e5570b490f58f6e030.zip
Include `hostName:$port` for Host access violation message as well
Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
Diffstat (limited to 'lib/private/Http/Client/DnsPinMiddleware.php')
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php
index 80454010a29..518281e4af0 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 "'.$ip.'" violates local access rules');
+ throw new LocalServerException('Host "'.$ip.'" ('.$hostName.':'.$port.') violates local access rules');
}
$curlResolves["$hostName:$port"][] = $ip;
}