Enhance logging for resolved whitelist hostnames with color formatting

7e8471f28ffa0f713f84d83c9ff7584d88470cf2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
src/middleware/whitelist.js+1 -1
@@ -94,7 +94,7 @@ async function resolveHostnames() {
9494
95 if (isValidHostname(entry)) {95 if (isValidHostname(entry)) {
96 const result = await dns.promises.lookup(entry);96 const result = await dns.promises.lookup(entry);
97 console.info(`Resolved whitelist hostname ${entry} to IPv${result.family} address ${result.address}`);97 console.info(`Resolved whitelist hostname ${color.green(entry)} to IPv${result.family} address ${color.green(result.address)}`);
98 whitelist[i] = result.address;98 whitelist[i] = result.address;
99 }99 }
100 } catch {100 } catch {