mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 03:56:42 +00:00
server: remove port requirement, permit running on paths (#680)
This commit is contained in:
@@ -96,8 +96,11 @@ const startWebServer = () => {
|
||||
|
||||
server.on('error', handleError);
|
||||
server.on('listening', handleListening);
|
||||
process.on('exit', () => {
|
||||
server.close();
|
||||
});
|
||||
|
||||
const address = chalk.underline(`${useSSL ? 'https' : 'http'}://${host}:${port}`);
|
||||
const address = chalk.underline(typeof port === 'string' ? port : `${useSSL ? 'https' : 'http'}://${host}:${port}`);
|
||||
|
||||
console.log(chalk.green(`Flood server ${packageJSON.version} starting on ${address}\n`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user