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

Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
pull/43650/head
Robin Kluth 2 years ago committed by John Molakvoæ
parent 3343626183
commit d70cd5add2
  1. 2
      lib/private/Http/Client/Client.php

@ -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');
}
}

Loading…
Cancel
Save