Wrong IP addresses from SDLNet_GetLocalAddresses
SDLBugzilla opened this issue · comments
This bug report was migrated from our old Bugzilla tracker.
Reported in version: unspecified
Reported for operating system, platform: Windows 7, x86_64
Comments on the original bug report:
On 2013-09-17 22:48:33 +0000, Mārtiņš Možeiko wrote:
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) {
On 2013-09-28 06:27:02 +0000, Sam Lantinga wrote:
Good catch, thanks!
http://hg.libsdl.org/SDL_net/rev/c98cd1a60729