Fix the port issue

This commit is contained in:
Louis Lam 2023-11-22 02:22:38 +08:00
parent 0279d431e0
commit 81cacbdddd

View file

@ -285,7 +285,7 @@ export class DockgeServer {
} }
// Listen // Listen
this.httpServer.listen(5001, this.config.hostname, () => { this.httpServer.listen(this.config.port, this.config.hostname, () => {
if (this.config.hostname) { if (this.config.hostname) {
log.info( "server", `Listening on ${this.config.hostname}:${this.config.port}`); log.info( "server", `Listening on ${this.config.hostname}:${this.config.port}`);
} else { } else {