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 to NI.getFlags on Darwin #547

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

vbousquet
Copy link
Contributor

NetworkInterface.getFlags always fail on Darwin (see robovm/robovm#1158) since it uses ioctl which is not reliable. This PR proposes to use getifaddr instead (like what has been done for other methods of NetworkInterface by the original authors, see robovm/robovm#1137).

I have only tested this on my setup (iPhone arm64) where it works fine.

Add support to NI.getFlags on Darwin
@dkimitsa
Copy link
Contributor

@vbousquet thanks !
have no ability to test but code look ok, as uses same approach as everything around

@vbousquet
Copy link
Contributor Author

I have tested it quite a bit since the PR and published the application (https://apps.apple.com/us/app/familys-game-pack/id1133300130) with Crashlytics that monitors it (thanks for AltPod !). Everything works fine on my side and tests, and I don't have any reports in Crashlytics on that part from the users. I think it should be good to be merged without too much risks.

@Tom-Ski Tom-Ski merged commit a3f2ce4 into MobiVM:master Oct 19, 2021
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.

3 participants