mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
fix: show actual bind address in startup logs (#6999)
Co-authored-by: Maks Pikov <mixelburg@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Maks Pikov
autofix-ci[bot]
parent
49f2633c9b
commit
1de276006c
@@ -1,6 +1,6 @@
|
||||
const express = require("express");
|
||||
const http = require("node:http");
|
||||
const { log } = require("../../src/util");
|
||||
const { printServerUrls } = require("../util-server");
|
||||
|
||||
/**
|
||||
* SimpleMigrationServer
|
||||
@@ -64,11 +64,7 @@ class SimpleMigrationServer {
|
||||
|
||||
return new Promise((resolve) => {
|
||||
this.server.listen(port, hostname, () => {
|
||||
if (hostname) {
|
||||
log.info("migration", `Migration server is running on http://${hostname}:${port}`);
|
||||
} else {
|
||||
log.info("migration", `Migration server is running on http://localhost:${port}`);
|
||||
}
|
||||
printServerUrls("migration", port, hostname);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user