-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove android-specific codepath for getifaddrs #1
Remove android-specific codepath for getifaddrs #1
Conversation
This is not supported in Android 11+. Instead, use libc getifaddr which works with Android 7+. See messense/if-addrs#14
However, this issue on that same repo isn't very promising: |
This is only deleting code. Is there a libc fallback that gets applied automatically? |
@thomaseizinger That's a good question. This ffi is only for android, but the
I tried using This simple crate seems to do away with the need for this So I ended up with this PR. |
One more good reason to roll our own minimal STUN/TURN client and do away with webrtc entirely. |
@thomaseizinger This commit is successfully passing CI here: firezone/firezone#1930 So I assume that |
This is similar to how C/C++ does it, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good, we are sacrificing Android's <7 support which released 6 years ago, I think this is acceptable.
Remove android-specific codepath for getifaddrs
This is not supported in Android 11+. Instead, use libc getifaddr which allegedly works with Android 7+.
See messense/if-addrs#14