diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index e0f03a44..809ece51 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'});