Update the resolveHostnames function to clarify its behavior and improve documentation
| @@ -79,8 +79,8 @@ function isIpFormat(entry) { | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | /** | 81 | /** |
| 82 | * Validate the IP addresses in the whitelist. | 82 | * Resolves hostnames in the whitelist to IP addresses. |
| 83 | * Hostnames are resolved to IP addresses. | 83 | * This function will modify the whitelist array in place. |
| 84 | */ | 84 | */ |
| 85 | async function resolveHostnames() { | 85 | async function resolveHostnames() { |
| 86 | for (let i = 0; i < whitelist.length; i++) { | 86 | for (let i = 0; i < whitelist.length; i++) { |