diff options
author | Robin Kluth <Commifreak@users.noreply.github.com> | 2024-02-19 14:26:42 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:34:34 +0100 |
commit | 414f8f1f2d9f04dfee2b94e5570b490f58f6e030 (patch) | |
tree | 19fbabc4a05099e5d9ca89c0fb55505691aa809c /lib/private/Http/Client/DnsPinMiddleware.php | |
parent | 25c0021137a2e80dc83a13e814ed4869ecb62782 (diff) | |
download | nextcloud-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.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 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; } |