Enhance logging for resolved whitelist hostnames with color formatting

This commit is contained in:
Cohee
2025-03-01 00:30:00 +02:00
parent 8fded75069
commit 7e8471f28f

View File

@@ -94,7 +94,7 @@ async function resolveHostnames() {
if (isValidHostname(entry)) {
const result = await dns.promises.lookup(entry);
console.info(`Resolved whitelist hostname ${entry} to IPv${result.family} address ${result.address}`);
console.info(`Resolved whitelist hostname ${color.green(entry)} to IPv${result.family} address ${color.green(result.address)}`);
whitelist[i] = result.address;
}
} catch {