Enhance logging for resolved whitelist hostnames with color formatting
| @@ -94,7 +94,7 @@ async function resolveHostnames() { | ||
| 94 | 94 | |
| 95 | 95 | if (isValidHostname(entry)) { |
| 96 | 96 | const result = await dns.promises.lookup(entry); |
| 97 | 97 | console.info(`Resolved whitelist hostname ${color.green(entry)} to IPv${result.family} address ${color.green(result.address)}`); |
| 98 | 98 | whitelist[i] = result.address; |
| 99 | 99 | } |
| 100 | 100 | } catch { |