| 94 | | 94 | |
| 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 { |