Fix no-auth to still use HTTPS, set default for no-auth to false (#573)

This commit is contained in:
John McCambridge
2019-04-23 16:38:49 -05:00
committed by Asher
parent 41c7d98b7b
commit 6b887dcc9c
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ export const createApp = async (options: CreateAppOptions): Promise<{
});
});
const server = httpolyglot.createServer(options.bypassAuth ? {} : options.httpsOptions || certs, app) as http.Server;
const server = httpolyglot.createServer(options.allowHttp ? {} : options.httpsOptions || certs, app) as http.Server;
const wss = new ws.Server({ server });
wss.shouldHandle = (req): boolean => {