Correctly instantiate server
This commit is contained in:
parent
8883461ef4
commit
5482f05e61
1 changed files with 2 additions and 2 deletions
|
|
@ -283,7 +283,7 @@ const server = program => {
|
||||||
return httpsServer
|
return httpsServer
|
||||||
}
|
}
|
||||||
|
|
||||||
const httpServer = Http.Server(app)
|
const httpServer = new Http.Server(app)
|
||||||
return httpServer
|
return httpServer
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(err.message)
|
logger.error(err.message)
|
||||||
|
|
@ -291,7 +291,7 @@ const server = program => {
|
||||||
'An error has occurred while finding an LND cert to use to open an HTTPS server'
|
'An error has occurred while finding an LND cert to use to open an HTTPS server'
|
||||||
)
|
)
|
||||||
logger.warn('Falling back to opening an HTTP server...')
|
logger.warn('Falling back to opening an HTTP server...')
|
||||||
const httpServer = Http.Server(app)
|
const httpServer = new Http.Server(app)
|
||||||
return httpServer
|
return httpServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue