VSCode DDoS itself discovering ports for the tunnel feature (#231668)

* VSCode DDoS itself discovering ports for the tunnel feature
Fixes #230738

* Expand limit
This commit is contained in:
Alex Ross authored and GitHub committed 2024-10-21 09:36:19 +02:00
1 parent 75caed98f2
commit 8ec9d668d5
1 file changed
+3
@@ -105,6 +105,9 @@ export function loadConnectionTable(stdout: string): Record<string, string>[] {
}
function knownExcludeCmdline(command: string): boolean {
if (command.length > 500) {
return false;
}
return !!command.match(/.*\.vscode-server-[a-zA-Z]+\/bin.*/)
|| (command.indexOf('out/server-main.js') !== -1)
|| (command.indexOf('_productName=VSCode') !== -1);