From b583108c26d420a7e4bd92d5f5ea27fed6f30bc3 Mon Sep 17 00:00:00 2001 From: Roee Gadot Date: Thu, 26 Aug 2021 18:46:57 +0300 Subject: [PATCH] remove unused and commented lines that are not relevant --- tap/passive_tapper.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tap/passive_tapper.go b/tap/passive_tapper.go index fbe425855..fbdb5890c 100644 --- a/tap/passive_tapper.go +++ b/tap/passive_tapper.go @@ -61,11 +61,7 @@ var anydirection = flag.Bool("anydirection", false, "Capture requests to other h var staleTimeoutSeconds = flag.Int("staletimout", 120, "Max time in seconds to keep connections which don't transmit data") var memprofile = flag.String("memprofile", "", "Write memory profile") - -// output -var HarOutputDir = flag.String("hardir", "", "Directory in which to store output har files") -var harEntriesPerFile = flag.Int("harentriesperfile", 200, "Number of max number of har entries to store in each file") - + var statsTracker = StatsTracker{} // global @@ -267,12 +263,6 @@ func startPassiveTapper(outputItems chan *api.OutputChannelItem) { } } - // if *dumpToHar { - // harWriter.Start() - // defer harWriter.Stop() - // } - // defer outboundLinkWriter.Stop() - var dec gopacket.Decoder var ok bool decoderName := *decoder