Private GIT

Skip to content
Snippets Groups Projects
Commit c4a54d04 authored by Kevin Duret's avatar Kevin Duret Committed by Matthieu Kermagoret
Browse files

fix(proxy): check external url + improve fail message

parent 5e97a55b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class CentreonProxy extends CentreonWebService
$proxyAddress = $this->arguments['url'];
$proxyPort = $this->arguments['port'];
try {
$testUrl = 'http://ci.int.centreon.com:3000/api/pluginpack/pluginpack';
$testUrl = 'https://api.imp.centreon.com/api/pluginpack/pluginpack';
$restHttpLib = new \CentreonRestHttp();
$restHttpLib->setProxy($proxyAddress, $proxyPort);
$restHttpLib->call($testUrl);
......@@ -18,7 +18,7 @@ class CentreonProxy extends CentreonWebService
$message = _('Connection Successful');
} catch (\Exception $e) {
$outcome = false;
$message = $e->getMessage();
$message = _('Connection failed to imp portal (') . $e->getMessage() . ')';
}
return array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment