mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
server: the http{,s} server can't be null
This commit is contained in:
parent
4c7337b625
commit
1597c2c56e
1 changed files with 2 additions and 2 deletions
|
@ -132,14 +132,14 @@ export default async function (
|
|||
return res.sendFile(path.join(packagePath, fileName));
|
||||
});
|
||||
|
||||
let server: import("http").Server | import("https").Server | null = null;
|
||||
|
||||
if (Config.values.public && (Config.values.ldap || {}).enable) {
|
||||
log.warn(
|
||||
"Server is public and set to use LDAP. Set to private mode if trying to use LDAP authentication."
|
||||
);
|
||||
}
|
||||
|
||||
let server: import("http").Server | import("https").Server;
|
||||
|
||||
if (!Config.values.https.enable) {
|
||||
const createServer = (await import("http")).createServer;
|
||||
server = createServer(app);
|
||||
|
|
Loading…
Reference in a new issue