From 366978e3035419daaf0d07ace90b4b87f56c4b85 Mon Sep 17 00:00:00 2001 From: Sabin Tudor Date: Thu, 1 Feb 2018 17:42:58 +0200 Subject: [PATCH] Fix net.sniff http URL format reporting (regression after path/hostname fix) --- modules/net_sniff_http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/net_sniff_http.go b/modules/net_sniff_http.go index 477ad9d1..4edfea22 100644 --- a/modules/net_sniff_http.go +++ b/modules/net_sniff_http.go @@ -35,11 +35,11 @@ func httpParser(ip *layers.IPv4, pkt gopacket.Packet, tcp *layers.TCP) bool { ua = string(mu[1]) } - url := fmt.Sprintf("%s", core.Yellow(path)) + url := fmt.Sprintf("%s", core.Yellow(hostname)) if tcp.DstPort != 80 { url += fmt.Sprintf(":%s", vPort(tcp.DstPort)) } - url += fmt.Sprintf("%s", hostname) + url += fmt.Sprintf("%s", path) NewSnifferEvent( pkt.Metadata().Timestamp,