From 33995047ebfeb95a3835c7146fb77582743ac9ee Mon Sep 17 00:00:00 2001 From: jaxfang Date: Tue, 10 Jan 2023 19:32:52 +0800 Subject: [PATCH] append pid=0 conn --- net/net_netlink_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/net_netlink_linux.go b/net/net_netlink_linux.go index 8c67af3c0..6f71847f2 100644 --- a/net/net_netlink_linux.go +++ b/net/net_netlink_linux.go @@ -69,6 +69,8 @@ func connectionsNetLink(kinds []netConnectionKindType, inodes map[string][]inode cs.Fd = is.fd ret = append(ret, cs) } + } else { + ret = append(ret, cs) } } }