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:
mixelburg
2026-02-23 23:04:48 +08:00
committed by GitHub
co-authored by Maks Pikov autofix-ci[bot]
parent 49f2633c9b
commit 1de276006c
4 changed files with 38 additions and 15 deletions
+2 -6
View File
@@ -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();
});
});