fix syntax error (#2)

Co-authored-by: DESKTOP-0P848CA\edinl_6z7c6t <[email protected]>
This commit is contained in:
Liu Jia Hao
2021-11-20 08:58:27 +08:00
committed by GitHub
co-authored by DESKTOP-0P848CA\edinl_6z7c6t
parent 78c06f8fc4
commit 9071931395
13 changed files with 5017 additions and 1117 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env node -r esm
import 'localenv';
import optimist from 'optimist';
require('localenv');
const optimist = require('optimist');
import log from 'book';
import Debug from 'debug';
const log = require('book');
const Debug = require('debug');
import CreateServer from '../server';
const CreateServer = require('../server');
const debug = Debug('localtunnel');
@@ -25,7 +25,7 @@ const argv = optimist
describe: 'IP address to bind to'
})
.options('domain', {
describe: '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)',
describe: 'Specify the base domain name. This is optional if hosting localtunnel = require(a regular example.com domain. This is required if hosting a localtunnel server = require(a subdomain (i.e. lt.example.dom where clients will be client-app.lt.example.come)',
})
.options('max-sockets', {
default: 10,