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

feat: macOS and FreeBSD reuse the same code #116

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

meowtec
Copy link
Contributor

@meowtec meowtec commented Mar 28, 2023

What's changed:

  1. Add [[example]] section into Cargo.toml so that we can easily run example: cargo run --example example.
  2. The current implement for local_ip on bsd is wrong as it return 127.0.0.1. (tested on freebsd 13 virtual machine).
  3. macOS and bsd should use same code because there are very few differences between each other.
  4. Support for Android via libc::getifaddrs because neli can not compile targeting Android.

@meowtec meowtec force-pushed the feat/unix branch 3 times, most recently from 6088315 to 01da9d2 Compare March 28, 2023 16:01
@LeoBorai LeoBorai changed the title macOS and bsd reuse the same code feat: macOS and FreeBSD reuse the same code Apr 24, 2023
@LeoBorai LeoBorai merged commit ffd436b into LeoBorai:main Apr 24, 2023
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.

2 participants