cnquery icon indicating copy to clipboard operation
cnquery copied to clipboard

🐛 Add socket info to processes

Open czunker opened this issue 3 years ago • 2 comments

Fixes #524

Signed-off-by: Christian Zunker [email protected]

czunker avatar Nov 30 '22 15:11 czunker

~~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.

czunker avatar Nov 30 '22 15:11 czunker

This PR includes changes for two differrent execution paths:

  • linuxproc_unix.go is used with local
  • ports.go is used with ssh

czunker avatar Dec 02 '22 07:12 czunker

fixes https://github.com/mondoohq/cnquery/issues/549

chris-rock avatar Dec 12 '22 15:12 chris-rock

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.

czunker avatar Dec 13 '22 10:12 czunker