diff options
| author | ilotterytea <iltsu@alright.party> | 2022-08-18 02:28:23 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-08-18 02:28:23 +0600 |
| commit | 2ee63a1ade7b99205e2d64ab5b02f8e37555c454 (patch) | |
| tree | 085daf143986916d5dd805833d1d3bdaeaf3c562 | |
| parent | 30886f3281f906ff80559682cbf1ce83eee7dca5 (diff) | |
asd
| -rw-r--r-- | src/Main.ts | 10 |
1 files 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 || |
