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
+9 -9
View File
@@ -1,16 +1,16 @@
const log = require('book');
const Koa = require('koa');
const tldjs = require('tldjs');
const Debug = require('debug');
const http = require('http');
const { hri } = require('human-readable-ids');
const Router = require('koa-router');
import log from 'book';
import Koa from 'koa';
import tldjs from 'tldjs';
import Debug from 'debug';
import http from 'http';
import { hri } from 'human-readable-ids';
import Router from 'koa-router';
const ClientManager = require('./lib/ClientManager');
import ClientManager from './lib/ClientManager';
const debug = Debug('localtunnel:server');
module.exports = function(opt) {
export default function(opt) {
opt = opt || {};
const validHosts = (opt.domain) ? [opt.domain] : undefined;