diff --git a/client.js b/client.js index 7d0d567..a816655 100644 --- a/client.js +++ b/client.js @@ -199,7 +199,7 @@ Tunnel.prototype._init = function(cb) { return setTimeout(get_url, 1000); } - if (res.status !== 200) { + if (res.statusCode !== 200) { var err = new Error((body && body.message) || 'localtunnel server returned an error, please try again'); return cb(err); }