diff options
author | ramon <ramongomez@us.es> | 2016-10-13 12:12:36 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-10-13 12:12:36 +0000 |
commit | 69052958f68c72caecaf47ad2d7d638241755c57 (patch) | |
tree | 6a9257a46aac99f87afc3d9663d62db8c9501468 /admin/WebConsole/rest/server.php | |
parent | f6045a5a04a257ad5dba6f541032798fe6245b91 (diff) |
#718: Usar clave de acceso a OGAgent en peticiones del servidor (por el momento usando método GET); soportar cabeceras y simplificar las llamadas a cURL.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5033 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r-- | admin/WebConsole/rest/server.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php index 056f680c..ab10bb06 100644 --- a/admin/WebConsole/rest/server.php +++ b/admin/WebConsole/rest/server.php @@ -636,7 +636,7 @@ EOD; if (empty($stat[0]) or preg_match('/OFF/', $stat[0])) { // If no data, check OGAgent API connection. $url = "https://$clientip:8000/opengnsys/status"; - $result = multiRequest(Array($url), array(CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false)); + $result = multiRequest(Array($url)); if (empty($result[0])) { // Client is off. $response['status'] = $status['OFF']; |