From 9c7a6c6eec7c8b4e142d1535b0abdbaac90ce4c7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 5 Jul 2018 22:13:56 -0600 Subject: [PATCH] v0.19.21: Fix https://git.coolaj86.com/coolaj86/telebit.js/issues/27 --- bin/telebit.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/telebit.js b/bin/telebit.js index 761182f..8d434c4 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -633,6 +633,9 @@ function parseCli(/*state*/) { return false; } if (argv[1]) { + if (String(argv[1]) !== String(parseInt(argv[1], 10))) { + argv[1] = path.resolve(argv[1]); + } utils.putConfig(argv[0], argv.slice(1)); return true; } diff --git a/package.json b/package.json index 881e22e..e58cb84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telebit", - "version": "0.19.20", + "version": "0.19.21", "description": "Break out of localhost. Connect to any device from anywhere over any tcp port or securely in a browser. A secure tunnel. A poor man's reverse VPN.", "main": "lib/remote.js", "files": [