Revert "fix syntax error (#2)"

This reverts commit 9071931395.
This commit is contained in:
DESKTOP-0P848CA\edinl_6z7c6t
2021-11-20 09:56:10 +08:00
parent 9071931395
commit a1bb6efab5
13 changed files with 1117 additions and 5017 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env node -r esm
require('localenv');
const optimist = require('optimist');
import 'localenv';
import optimist from 'optimist';
const log = require('book');
const Debug = require('debug');
import log from 'book';
import Debug from 'debug';
const CreateServer = require('../server');
import CreateServer from '../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 = 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)',
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)',
})
.options('max-sockets', {
default: 10,