From 98a708c0994c64286075a0cf4eadf68ad94b2d66 Mon Sep 17 00:00:00 2001 From: Marwan Sulaiman Date: Tue, 2 May 2023 15:32:15 -0400 Subject: [PATCH] Remove loopback for tcp --- portlist/netstat.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/portlist/netstat.go b/portlist/netstat.go index 132367ca9..4408d3efd 100644 --- a/portlist/netstat.go +++ b/portlist/netstat.go @@ -99,10 +99,6 @@ func appendParsePortsNetstat(base []Port, br *bufio.Reader) ([]Port, error) { // not interested in non-listener sockets continue } - if isLoopbackAddr(laddr) { - // not interested in loopback-bound listeners - continue - } } else if mem.HasPrefixFold(protos, mem.S("udp")) { if len(cols) < 3 { continue