Fix no-auth to still use HTTPS, set default for no-auth to false (#573)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user