Add a CLI option to specify the host (#3180)
This commit is contained in:
committed by
Florent Vilmart
parent
df74a1f8ae
commit
8124bf4600
@@ -35,7 +35,7 @@ function startServer(options, callback) {
|
||||
|
||||
app.use(options.mountPath, api);
|
||||
|
||||
let server = app.listen(options.port, callback);
|
||||
let server = app.listen(options.port, options.host, callback);
|
||||
server.on('connection', initializeConnections);
|
||||
|
||||
if (options.startLiveQueryServer || options.liveQueryServerOptions) {
|
||||
|
||||
Reference in New Issue
Block a user