diff --git a/lib/client.js b/lib/client.js index b1eb7e4..0eb5c53 100644 --- a/lib/client.js +++ b/lib/client.js @@ -113,7 +113,7 @@ Client.prototype._attachApi = function () { request(ariUrl, function (err) { if (err && - ['ETIMEDOUT', 'ENOTFOUND', 'ECONNREFUSED'].indexOf(err.code) !== -1) { + ['ETIMEDOUT', 'ENOTFOUND', 'EPROTO', 'DEPTH_ZERO_SELF_SIGNED_CERT', 'ECONNREFUSED'].indexOf(err.code) !== -1) { err.name = 'HostIsNotReachable'; self.emit('APILoadError', err);