megaglest-source icon indicating copy to clipboard operation
megaglest-source copied to clipboard

fix: run internet scenario or host game

Open pavanvo opened this issue 2 years ago • 2 comments

this PR solving problems with creation internet scenario

pavanvo avatar Aug 03 '22 00:08 pavanvo

@pavanvo Could you please explain this change more? What is the problem it's fixing?

andy5995 avatar Aug 13 '22 22:08 andy5995

@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

pavanvo avatar Aug 14 '22 12:08 pavanvo