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

Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
This commit is contained in:
Robin Kluth 2024-02-19 11:18:37 +01:00 committed by John Molakvoæ
parent 3343626183
commit d70cd5add2

View file

@ -192,7 +192,7 @@ class Client implements IClient {
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');
}
}