MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / MitmInteractor

Class MitmInteractor

Extension/src/SSH/commandInteractors.ts:46–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46export class MitmInteractor implements IInteractor {
47 static ID = 'mitm';
48
49 get id(): string {
50 return MitmInteractor.ID;
51 }
52
53 async onData(data: string): Promise<IInteraction> {
54 if (data.match('Port forwarding is disabled to avoid man-in-the-middle attacks.')) {
55 throw Error('Port forwarding is disabled to avoid man-in-the-middle attacks.');
56 }
57
58 return {};
59 }
60}
61
62export class FingerprintInteractor implements IInteractor {
63 static ID = 'fingerprint';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected