Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function tunnel(port, fn) {
var client = localtunnel.connect({
host: 'http://localtunnel.me',
port: port
});
client.on('url', function(url) {
fn(null, url);
});
return client;
}
module.exports = function(port, cb) {
debug('tunnel requested to port %d', port);
var client = localtunnel.connect({
host: 'http://localtunnel.me',
port: port
});
client.on('url', function(url) {
cb(null, url);
});
return client;
};