From 2acea3d77f6b62ff0eae719553eff23cf03b391a Mon Sep 17 00:00:00 2001 From: Nuno Job Date: Mon, 28 Apr 2014 23:32:00 +0100 Subject: [PATCH] Return client This allows manipulating the client from outside. Allowing, for example, to close a connection. --- client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client.js b/client.js index a816655..173f278 100644 --- a/client.js +++ b/client.js @@ -312,4 +312,5 @@ module.exports = function localtunnel(port, opt, fn) { fn(null, client); }); + return client; };