(env)
| 106 | // Resolve the mirror URL chain and admit each host. Called from install() so |
| 107 | // derived hosts only become trusted when actually needed. |
| 108 | function getMirrorUrls(env) { |
| 109 | const urls = resolveMirrorUrls(env, archiveName, VERSION); |
| 110 | for (const u of urls) ALLOWED_HOSTS.add(new URL(u).hostname); |
| 111 | return urls; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Decide from a `curl --version` output whether curl is >= 7.70.0 — the |
no test coverage detected