From 947a307b25e8eb7e66cea3608e33890e11e7d668 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:25:55 +0200 Subject: [PATCH] Update function comment --- src/middleware/whitelist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware/whitelist.js b/src/middleware/whitelist.js index cf1e31d9e..206eab8bb 100644 --- a/src/middleware/whitelist.js +++ b/src/middleware/whitelist.js @@ -50,8 +50,8 @@ function getForwardedIp(req) { } /** - * Resolves hostnames in the whitelist to IP addresses. - * This function will modify the whitelist array in place. + * Resolves the IP addresses of Docker hostnames and adds them to the whitelist. + * @returns {Promise} Promise that resolves when the Docker hostnames are resolved */ async function addDockerHostsToWhitelist() { if (!whitelistDockerHosts || !isDocker()) {