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

NetworkInterface::map can fail to reveal some interfaces if an earlier one can not be handled #2863

Closed
bridgewaterrobbie opened this issue Dec 12, 2019 · 0 comments

Comments

@bridgewaterrobbie
Copy link

The for loop "for (currIface = ifaces; currIface != 0; currIface = currIface->ifa_next)" is surrounded by a try-catch block. If for some reason poco can not handle one of the addresses from getifaddrs, poco will stop parsing the list and return what it has found.

On my Mac with a thunderbolt ethernet adapter, I found that it was not detecting the adapter because poco could not handle an earlier entry in the map. Surrounding the interior of the for-loop with try-catch made my external ethernet adapter show up properly.

@obiltschnig obiltschnig self-assigned this Dec 12, 2019
@obiltschnig obiltschnig added this to the Release 1.10.0 milestone Dec 12, 2019
obiltschnig added a commit that referenced this issue Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants