cnquery
cnquery copied to clipboard
🐛 Add socket info to processes
~~As far as I know now, it will not work on MacOS, because ss is not supported. On the other side, latest Ubuntu versions no longer ship with netstat preinstalled.~~
FreeBSD already worked on main, so should MacOS as they use the same code path. So, I only need to fix it for Linux.
This PR includes changes for two differrent execution paths:
-
linuxproc_unix.gois used withlocal -
ports.gois used withssh
fixes https://github.com/mondoohq/cnquery/issues/549
This is a super great addition @czunker If we could add a small test to test the regex it would be perfect.
Tests are now also present.