Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Log Host/IP in LocalServerException for `Host violates local access…
… rules`

Signed-off-by: Robin Kluth <[email protected]>
  • Loading branch information
Commifreak authored and skjnldsv committed Feb 24, 2024
commit d70cd5add23b66a5009c492727002c19db431b95
2 changes: 1 addition & 1 deletion lib/private/Http/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected function preventLocalAddress(string $uri, array $options): void {
throw new LocalServerException('Could not detect any host');
}
if (!$this->remoteHostValidator->isValid($host)) {
throw new LocalServerException('Host violates local access rules');
throw new LocalServerException('Host "'.$host.'" violates local access rules');
}
}

Expand Down