| 50 | } | 50 | } |
| 51 | | 51 | |
| 52 | /** | 52 | /** |
| 53 | * Resolves hostnames in the whitelist to IP addresses. | 53 | * Resolves the IP addresses of Docker hostnames and adds them to the whitelist. |
| 54 | * This function will modify the whitelist array in place. | 54 | * @returns {Promise<void>} Promise that resolves when the Docker hostnames are resolved |
| 55 | */ | 55 | */ |
| 56 | async function addDockerHostsToWhitelist() { | 56 | async function addDockerHostsToWhitelist() { |
| 57 | if (!whitelistDockerHosts || !isDocker()) { | 57 | if (!whitelistDockerHosts || !isDocker()) { |