Fix hosting on default protocol ports

Closes #2709
This commit is contained in:
Cohee 2024-08-25 22:59:07 +03:00
parent de91b395b0
commit 0586bd6db0
1 changed files with 2 additions and 2 deletions

View File

@ -817,7 +817,7 @@ function createHttpsServer(url) {
}, app);
server.on('error', reject);
server.on('listening', resolve);
server.listen(url.port, url.hostname);
server.listen(url.port || 443, url.hostname);
});
}
@ -832,7 +832,7 @@ function createHttpServer(url) {
const server = http.createServer(app);
server.on('error', reject);
server.on('listening', resolve);
server.listen(url.port, url.hostname);
server.listen(url.port || 80, url.hostname);
});
}