fix multi runner passive tapper command

This commit is contained in:
Roee Gadot 2021-04-29 08:21:30 +03:00
parent e2df769ebd
commit 81c6b66999
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"flag"
"github.com/gofiber/fiber/v2"
"mizuserver/pkg/inserter"
"mizuserver/pkg/middleware"
@ -14,10 +15,11 @@ func main() {
app := fiber.New()
go inserter.StartReadingFiles("/tmp/up9hars") // process to read files and insert to DB
var harDir = flag.String("hardir", "/tmp/mizuhars", "Directory in which to store output har files")
go inserter.StartReadingFiles(*harDir) // process to read files and insert to DB
middleware.FiberMiddleware(app) // Register Fiber's middleware for app.
app.Static("/", "./site")
//Simple route to know server is running

View File

@ -2,6 +2,6 @@
# this script runs both executables and exits everything if one fails
./apiserver &
./passivetapper -i eth0 &
./passivetapper -i any -hardump -hardir /tmp/mizuhars -harentriesperfile 50 &
wait -n
pkill -P $$