Remove loopback for tcp
parent
7a530173bd
commit
98a708c099
|
@ -99,10 +99,6 @@ func appendParsePortsNetstat(base []Port, br *bufio.Reader) ([]Port, error) {
|
||||||
// not interested in non-listener sockets
|
// not interested in non-listener sockets
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if isLoopbackAddr(laddr) {
|
|
||||||
// not interested in loopback-bound listeners
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
} else if mem.HasPrefixFold(protos, mem.S("udp")) {
|
} else if mem.HasPrefixFold(protos, mem.S("udp")) {
|
||||||
if len(cols) < 3 {
|
if len(cols) < 3 {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue