host is undefined

This commit is contained in:
Girish Ramakrishnan 2017-03-30 19:44:32 -07:00
parent 56faae7a7e
commit 8530238990

View File

@ -774,11 +774,11 @@ Cloudron.prototype.checkMail = function (account, callback) {
Cloudron.prototype.checkTcpRateLimit = function (port, times, callback) {
tcpBomb(this._adminFqdn, port, times, 900 /* timeout */, function (error, result) {
if (error) return callback(new Error(host + ':' + port + ':' + error.message));
if (error) return callback(new Error(port + ':' + error.message));
if (result.timeout) return callback(null, { status: 'OK' }); // something timedout, this is good enough
return callback(new Error(host + ':' + port + ':' + JSON.stringify(result, null, 4)));
return callback(new Error(port + ':' + JSON.stringify(result, null, 4)));
});
};