-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UNC allow list checks cannot be disabled in extension host (fix #184989…
…) (#185085) * UNC allow list checks cannot be disabled in extension host (#184989) * Update src/vs/base/node/unc.js Co-authored-by: Robo <[email protected]> --------- Co-authored-by: Robo <[email protected]>
- Loading branch information
1 parent
4f95907
commit 695af09
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,11 +117,20 @@ | |
process.enableUNCAccessChecks = false; | ||
} | ||
|
||
function isUNCAccessRestrictionsDisabled() { | ||
if (process.platform !== 'win32') { | ||
return true; | ||
} | ||
|
||
return process.enableUNCAccessChecks === false; | ||
} | ||
|
||
return { | ||
getUNCHostAllowlist, | ||
addUNCHostToAllowlist, | ||
getUNCHost, | ||
disableUNCAccessRestrictions | ||
This comment has been minimized.
Sorry, something went wrong.
Grumpy2869
|
||
disableUNCAccessRestrictions, | ||
isUNCAccessRestrictionsDisabled | ||
}; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 695af09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope this works
This comment has been minimized.
Sorry, something went wrong.
Grumpy2869Jul 2, 2023