mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 00:05:28 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user