Skip to content

Commit b11e4ed

Browse files
bpaserojoaomoreno
andauthored
Setting NODE_UNC_HOST_ALLOWLIST does not work (fix microsoft#182019) (microsoft#182021)
* Setting `NODE_UNC_HOST_ALLOWLIST` does not work (fix microsoft#182019) * Update src/vs/base/node/unc.ts Co-authored-by: João Moreno <[email protected]> --------- Co-authored-by: João Moreno <[email protected]>
1 parent 3468d21 commit b11e4ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/vs/base/node/unc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export function setUNCHostAllowlist(allowedHosts: string[]): void {
2222

2323
const allowlist = processUNCHostAllowlist();
2424
if (allowlist) {
25-
allowlist.clear();
26-
2725
for (const allowedHost of allowedHosts) {
2826
allowlist.add(allowedHost);
2927
}

0 commit comments

Comments
 (0)