From af9e27e07876ccdf06d5bf5a90e695dcb7a288c3 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 2 Mar 2018 17:25:59 -0500 Subject: [PATCH] fix ipfs service check --- lib/modules/ipfs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index e0f03a44f..809ece518 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -52,7 +52,7 @@ class IPFS { this.addCheck('IPFS', function (cb) { 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) { self.logger.trace("Check IPFS version error: " + err); return cb({name: "IPFS ", status: 'off'});