Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for more operating systems. #110

Merged
merged 1 commit into from
Jan 13, 2020
Merged

Conversation

Erk-
Copy link
Contributor

@Erk- Erk- commented Jan 11, 2020

This commit will add support for other bsd like systems then
macos, I am not able to test on macos, but I can confirm that
it works on freebsd. it should also work on other systems with
lsof, if I understand how it works correctly. wich according to the
man pages includes macos, freebsd, linux and solaris.

Closes #20

src/network/connection.rs Outdated Show resolved Hide resolved
@zhangxp1998
Copy link
Collaborator

O(∩_∩)O Thanks for sending a PR! Overall looks good, I left one knitpick.

@zhangxp1998
Copy link
Collaborator

Also please correct the CI failure, it seems to be some formatting issue. Just format your code with rustfmt and the failure should go away.

This commit will add support for operating systems
that have the lsof tool, initially it will only work
on MacOS and FreeBSD, but more operating systems
may be added at a later time.

Signed-off-by: Valdemar Erk <valdemar@erk.io>
@Erk-
Copy link
Contributor Author

Erk- commented Jan 12, 2020

I have made the changes you requested

@Erk-
Copy link
Contributor Author

Erk- commented Jan 12, 2020

Missed one of the places so that is the reason for the other force push.

Copy link
Collaborator

@zhangxp1998 zhangxp1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^_^ Awesome! Feel free to merge it once the CI passes

@zhangxp1998 zhangxp1998 merged commit da91443 into imsnif:master Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FreeBSD port
2 participants