From 2ee63a1ade7b99205e2d64ab5b02f8e37555c454 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 18 Aug 2022 02:28:23 +0600 Subject: asd --- src/Main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Main.ts b/src/Main.ts index bf75f2a..30368e9 100644 --- a/src/Main.ts +++ b/src/Main.ts @@ -49,12 +49,12 @@ function Main(dirPath: string, cfg: {[key: string]: any}, cli_options?: {[key: s App.use(express.static(`${dirPath}/static`)); if (cli_options) { + httpc = http.createServer(App); + httpc.listen(parseInt(cfg.Ports.HTTP), () => { + log.info("Image hoster is running on port", cfg.Ports.HTTP); + }); + if (!cli_options.noSsl) { - httpc = http.createServer(App); - httpc.listen(parseInt(cfg.Ports.HTTP), () => { - log.info("Image hoster is running on port", cfg.Ports.HTTP); - }); - } else { if ( !cfg.Certificate.Key || !cfg.Certificate.Cert || -- cgit v1.2.3