Skip to content
Snippets Groups Projects
Commit 106b1d54 authored by Tibo's avatar Tibo
Browse files

Revert proxy handling modifications

parent a809fe30
No related branches found
No related tags found
1 merge request!6Temperature
Pipeline #3303 failed
......@@ -19,20 +19,12 @@ class ClientVersion extends \App\AbstractSensor
$options = ['timeout' => 5.0];
$proxy = config("app.proxy", null);
var_dump($proxy);
//exit();
if ($proxy != null) {
$options["proxy"] = $proxy;
}
$client = new Client($options);
try {
$json = $client->get(self::MANIFEST)->getBody();
} catch (\Exception $ex) {
return "";
}
$json = $client->get(self::MANIFEST)->getBody();
return json_decode($json)[0];
}
......@@ -40,14 +32,12 @@ class ClientVersion extends \App\AbstractSensor
public function latestVersion()
{
//return $this->manifest()->version;
return "";
return $this->manifest()->version;
}
public function latestUrl()
{
//return $this->manifest()->url;
return "";
return $this->manifest()->url;
}
//put your code here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment