fix ipfs service check

This commit is contained in:
Iuri Matias 2018-03-02 17:25:59 -05:00
parent b3749bd5ac
commit af9e27e078
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class IPFS {
this.addCheck('IPFS', function (cb) { this.addCheck('IPFS', function (cb) {
self.logger.trace("Checking IPFS version..."); self.logger.trace("Checking IPFS version...");
utils.httpGetJson('http://' + this.host + ':' + this.port + '/api/v0/version', function (err, body) { utils.httpGetJson('http://' + self.host + ':' + self.port + '/api/v0/version', function (err, body) {
if (err) { if (err) {
self.logger.trace("Check IPFS version error: " + err); self.logger.trace("Check IPFS version error: " + err);
return cb({name: "IPFS ", status: 'off'}); return cb({name: "IPFS ", status: 'off'});