From de6201ecf3d6126c24626bc601a180341bf3a0cb Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Fri, 8 Jul 2022 08:59:56 +0200 Subject: [PATCH] Use a space after the network inspector query so the esc is not necessary --- Docker/run-analysis.sh | 3 +-- src/index.ts | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Docker/run-analysis.sh b/Docker/run-analysis.sh index e1f941f..f20bd18 100755 --- a/Docker/run-analysis.sh +++ b/Docker/run-analysis.sh @@ -44,8 +44,7 @@ while IFS= read -r DOMAIN; do continue fi echo "{\"current_action\": \"scanning for requests from $DOMAIN...\"}" - # network_inspector_search "domain:$DOMAIN" # can filter with more granularity: https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/request_list#filtering_by_properties - network_inspector_search "$DOMAIN" # the "domain:" prefix caused problems, as the GUI forces an autocomplete action. This can be worked around by pressing `ESC`, but if you press ESC when there are NO requests, then the console appears and messes up the layout. + network_inspector_search "domain:$DOMAIN " # can filter with more granularity: https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/request_list#filtering_by_properties # grab ni_search diff --git a/src/index.ts b/src/index.ts index 6c47f94..ad03a21 100644 --- a/src/index.ts +++ b/src/index.ts @@ -170,5 +170,6 @@ router.get("/api/requests/:id", async (ctx) => { }); app.use(router.routes()).use(router.allowedMethods()); -app.listen(3000); -console.log("server started"); +const port = 3000; +app.listen(port); +console.log(`server started on port ${port}`);