diff options
Diffstat (limited to 'caronte.go')
-rw-r--r-- | caronte.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 { |