mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
SOCKET_LEGACY doesn't even necessarily have inet_ntoa, so oh well, no
host for you
This commit is contained in:
parent
711e4ea634
commit
5739be5594
@ -1110,10 +1110,7 @@ static void announce_nat_traversal(netplay_t *netplay)
|
||||
#else
|
||||
if (netplay->nat_traversal_state.have_inet4)
|
||||
{
|
||||
strncpy(host,
|
||||
inet_ntoa(netplay->nat_traversal_state.ext_inet4_addr.sin_addr),
|
||||
PATH_MAX_LENGTH);
|
||||
host[PATH_MAX_LENGTH-1] = '\0';
|
||||
host[0] = '\0';
|
||||
snprintf(port, 6, "%hu",
|
||||
ntohs(netplay->nat_traversal_state.ext_inet4_addr.sin_port));
|
||||
port[5] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user