1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Pass httpServer to runtime even when httpAdmin disabled

Fixes #2272
This commit is contained in:
Nick O'Leary 2019-08-21 11:12:15 +01:00
parent 189bde7c9c
commit afaf077aca
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -76,7 +76,7 @@ module.exports = {
apiEnabled = true;
server = httpServer;
} else {
runtime.init(userSettings);
runtime.init(userSettings, httpServer);
apiEnabled = false;
if (httpServer) {
server = httpServer;