From beb1d8524561cb4af135b4b963fdac679cb4c213 Mon Sep 17 00:00:00 2001 From: Jacob Mather Date: Mon, 2 Sep 2019 16:48:30 -0400 Subject: [PATCH] Support non-standard ports Support non-standard ports --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 21a4af69..fad5f3ad 100644 --- a/server.js +++ b/server.js @@ -18,7 +18,8 @@ export default function(opt) { const landingPage = opt.landing || 'https://localtunnel.github.io/www/'; function GetClientIdFromHostname(hostname) { - return myTldjs.getSubdomain(hostname); + const pieces = hostname.split(':'); + return myTldjs.getSubdomain(pieces[0]); } const manager = new ClientManager(opt);