Skip to content

Commit 4acfb45

Browse files
committed
1 parent ddc6b20 commit 4acfb45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type CliOpts = {
1515
port: number
1616
address: string,
1717
domain: string,
18+
landing: string,
1819
maxSockets: number,
1920
}
2021

@@ -24,6 +25,7 @@ const runServer = (opts: CliOpts) => {
2425
max_tcp_sockets: opts.maxSockets,
2526
secure: opts.secure,
2627
domain: opts.domain,
28+
landing: opts.landing,
2729
});
2830

2931
server.listen(opts.port, opts.address, () => {
@@ -63,7 +65,8 @@ const main = async () => {
6365
.option('--secure', 'use this flag to indicate proxy over https', false)
6466
.option('--port, -p <number>', 'listen on this port for outside requests', intParser, 80)
6567
.option('--address, -a <string>', 'IP address to bind to', '0.0.0.0')
66-
.option('--domain, -d <string>', 'Specify the base domain name. This is optional if hosting localtunnel from a regular example.com domain. This is required if hosting a localtunnel server from a subdomain (i.e. lt.example.dom where clients will be client-app.lt.example.come)')
68+
.option('--domain, -d <string>', 'Specify the base domain name. This is optional if hosting localtunnel from a regular example.com domain. This is required if hosting a localtunnel server from a subdomain (i.e. lt.example.dom where clients will be client-app.lt.example.com)')
69+
.option('--landing, -l <string>', 'The landing page for redirect from root domain', 'https://localtunnel.github.io/www/')
6770
.option('--max-sockets', 'maximum number of tcp sockets each client is allowed to establish at one time (the tunnels)', intParser, 10)
6871
.action(runServer)
6972

0 commit comments

Comments
 (0)