megaglest-source
megaglest-source copied to clipboard
fix: run internet scenario or host game
this PR solving problems with creation internet scenario
@pavanvo Could you please explain this change more? What is the problem it's fixing?
@andy5995 When we starting to host game, we call the code in "getLocalIPAddressListForPlatform" method, which always cause of problem.
Basically code getifaddrs(&ifap);
not always set ifap
value, also we need to check ifa->ifa_addr
.
It's just standard loop for local network checking, and don't know why it was written incompletely.
Without this checks you can not host game, on the dev branch