host is undefined
This commit is contained in:
parent
56faae7a7e
commit
8530238990
@ -774,11 +774,11 @@ Cloudron.prototype.checkMail = function (account, callback) {
|
|||||||
|
|
||||||
Cloudron.prototype.checkTcpRateLimit = function (port, times, callback) {
|
Cloudron.prototype.checkTcpRateLimit = function (port, times, callback) {
|
||||||
tcpBomb(this._adminFqdn, port, times, 900 /* timeout */, function (error, result) {
|
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
|
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)));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user