mirror of https://github.com/xwiki-labs/cryptpad
Fix http server issue with node >= v20.13.0
This commit is contained in:
parent
7a259264e4
commit
4483b848ff
|
@ -735,7 +735,8 @@ var server = Http.createServer(app);
|
|||
nThen(function (w) {
|
||||
server.listen(Env.httpPort, Env.httpAddress, w());
|
||||
if (Env.httpSafePort) {
|
||||
server.listen(Env.httpSafePort, Env.httpAddress, w());
|
||||
let safeServer = Http.createServer(app);
|
||||
safeServer.listen(Env.httpSafePort, Env.httpAddress, w());
|
||||
}
|
||||
server.on('upgrade', function (req, socket, head) {
|
||||
// TODO warn admins that websockets should only be proxied in this way in a dev environment
|
||||
|
|
Loading…
Reference in New Issue