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
2024-10-21 09:36:19 +02:00
committed by GitHub
parent 75caed98f2
commit 8ec9d668d5
@@ -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);