Merge pull request #13993 from fr500/patch-2

Fix lan rooms on android
This commit is contained in:
LibretroAdmin 2022-06-01 05:14:39 +01:00 committed by GitHub
commit b4dc4f3cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,13 +333,17 @@ static bool netplay_lan_ad_client_response(void)
/* And that we know how to handle it */
#ifdef HAVE_INET6
#ifndef ANDROID
if (their_addr.ss_family != AF_INET)
continue;
#endif
if (!netplay_is_lan_address(
(struct sockaddr_in *) &their_addr))
continue;
#endif
if (their_addr.ss_family != AF_INET)
{
if (!netplay_is_lan_address(
(struct sockaddr_in *) &their_addr))
continue;
}
#ifndef HAVE_SOCKET_LEGACY
if (getnameinfo((struct sockaddr *)