From a6bc6b014827682cd842142493d392ed2a98b95f Mon Sep 17 00:00:00 2001 From: tiriplicamihai Date: Mon, 28 Jan 2019 23:06:18 +0200 Subject: [PATCH] Use break instead of continue. --- probe/endpoint/dns_snooper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/endpoint/dns_snooper.go b/probe/endpoint/dns_snooper.go index f0d73122e..c1151fb09 100644 --- a/probe/endpoint/dns_snooper.go +++ b/probe/endpoint/dns_snooper.go @@ -273,7 +273,7 @@ func (s *DNSSnooper) processDNSMessage(dns *layers.DNS) { for _, alias := range aliases { if bytes.Equal(alias, record.Name) { ips[record.IP.String()] = struct{}{} - continue + break } } }