add landing page to argv

This commit is contained in:
Omar Aflak
2021-02-12 14:20:24 +01:00
parent 78c06f8fc4
commit 70b6d0a009
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -31,6 +31,10 @@ const argv = optimist
default: 10,
describe: 'maximum number of tcp sockets each client is allowed to establish at one time (the tunnels)'
})
.options('landing', {
default: 'https://localtunnel.github.io/www/',
describe: 'Landing page'
})
.argv;
if (argv.help) {
@@ -42,6 +46,7 @@ const server = CreateServer({
max_tcp_sockets: argv['max-sockets'],
secure: argv.secure,
domain: argv.domain,
landing: argv.landing
});
server.listen(argv.port, argv.address, () => {
@@ -65,4 +70,3 @@ process.on('unhandledRejection', (reason, promise) => {
});
// vim: ft=javascript