From 1b45659f472f01d2bf5c339b21d0bcfc74e49695 Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Thu, 1 Oct 2020 16:14:16 +0200 Subject: [PATCH] Add review changes --- firewall/interception/interception.go | 8 ++++---- firewall/interception/introspection.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firewall/interception/interception.go b/firewall/interception/interception.go index 8ee72788..3c4bb5b1 100644 --- a/firewall/interception/interception.go +++ b/firewall/interception/interception.go @@ -25,18 +25,18 @@ func Start() error { return nil } - var ch = Packets + var inputPackets = Packets if packetMetricsDestination != "" { go metrics.writeMetrics() - ch = make(chan packet.Packet) + inputPackets = make(chan packet.Packet) go func() { - for p := range ch { + for p := range inputPackets { Packets <- tracePacket(p) } }() } - return start(ch) + return start(inputPackets) } // Stop starts the interception. diff --git a/firewall/interception/introspection.go b/firewall/interception/introspection.go index 40091ba3..b8e949eb 100644 --- a/firewall/interception/introspection.go +++ b/firewall/interception/introspection.go @@ -18,7 +18,7 @@ var ( ) func init() { - flag.StringVar(&packetMetricsDestination, "packet-metrics", "", "Write packet metrics") + flag.StringVar(&packetMetricsDestination, "write-packet-metrics", "", "Write packet metrics to the specified file") } type (