Update the resolveHostnames function to clarify its behavior and improve documentation

50ad31f8e8b7c88ab89d73f7dc16a602c3596813

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

1 files changed, +2 -2Ignore whitespace
src/middleware/whitelist.js+2 -2
@@ -79,8 +79,8 @@ function isIpFormat(entry) {
79}79}
8080
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 */
85async function resolveHostnames() {85async function resolveHostnames() {
86 for (let i = 0; i < whitelist.length; i++) {86 for (let i = 0; i < whitelist.length; i++) {