mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +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:
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);
|
||||
|
||||
Reference in new issue
Block a user