Update the resolveHostnames function to clarify its behavior and improve documentation

This commit is contained in:
Cohee
2025-02-28 00:36:27 +02:00
parent 978b2cdb21
commit 50ad31f8e8

View File

@@ -79,8 +79,8 @@ function isIpFormat(entry) {
}
/**
* Validate the IP addresses in the whitelist.
* Hostnames are resolved to IP addresses.
* Resolves hostnames in the whitelist to IP addresses.
* This function will modify the whitelist array in place.
*/
async function resolveHostnames() {
for (let i = 0; i < whitelist.length; i++) {