aboutsummaryrefslogtreecommitdiff
path: root/caronte.go
diff options
context:
space:
mode:
Diffstat (limited to 'caronte.go')
-rw-r--r--caronte.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/caronte.go b/caronte.go
index 96bb281..6b33318 100644
--- a/caronte.go
+++ b/caronte.go
@@ -2,17 +2,19 @@ package main
import (
"fmt"
+ "net"
)
func main() {
- // testStorage()
- storage := NewStorage("localhost", 27017, "testing")
+ // pattern.Flags |= hyperscan.SomLeftMost
+
+ storage := NewMongoStorage("localhost", 27017, "testing")
err := storage.Connect(nil)
if err != nil {
panic(err)
}
- importer := NewPcapImporter(&storage, "10.10.10.10")
+ importer := NewPcapImporter(storage, net.ParseIP("10.10.10.10"))
sessionId, err := importer.ImportPcap("capture_00459_20190627165500.pcap")
if err != nil {