Support non-standard ports #118

Open
jmather wants to merge 1 commits from jmather/master into master
+2 -1
View File
@@ -18,7 +18,8 @@ export default function(opt) {
const landingPage = opt.landing || 'https://localtunnel.github.io/www/'; const landingPage = opt.landing || 'https://localtunnel.github.io/www/';
function GetClientIdFromHostname(hostname) { function GetClientIdFromHostname(hostname) {
return myTldjs.getSubdomain(hostname); const pieces = hostname.split(':');
return myTldjs.getSubdomain(pieces[0]);
} }
const manager = new ClientManager(opt); const manager = new ClientManager(opt);