| Summary: | Wrong IP addresses from SDLNet_GetLocalAddresses | ||
|---|---|---|---|
| Product: | SDL_net | Reporter: | Mārtiņš Možeiko <mm.5p4mbox> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
Good catch, thanks! http://hg.libsdl.org/SDL_net/rev/c98cd1a60729 |
On Windows IP address list returned by SDLNet_GetLocalAddresses function returns IP address of first adapter for all adapters. Instead of: for (pAddress = &pAdapterInfo->IpAddressList; pAddress; pAddress = pAddress->Next) { There should be this: for (pAddress = &pAdapter->IpAddressList; pAddress; pAddress = pAddress->Next) {