mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Move npm and pip mitm interception to separate files
This commit is contained in:
parent
e251908cb3
commit
f4694ba119
8 changed files with 350 additions and 224 deletions
|
|
@ -69,7 +69,7 @@ function createHttpsServer(hostname, interceptor) {
|
|||
const targetUrl = `https://${hostname}${pathAndQuery}`;
|
||||
|
||||
const interceptorResult = await interceptor.handleRequest(targetUrl);
|
||||
const blockResponse = interceptorResult?.blockResponse;
|
||||
const blockResponse = interceptorResult.blockResponse;
|
||||
|
||||
if (blockResponse) {
|
||||
ui.writeVerbose(`Safe-chain: Blocking request to ${targetUrl}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue