Merge branch 'fix-server-list-inconsistency' into 'next'

Fix inconsistency in master server listing

See merge request STJr/SRB2!2539
This commit is contained in:
Lactozilla 2024-11-24 16:39:28 +00:00
commit 5b4b121190

View file

@ -1152,11 +1152,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
// test ip address of server // test ip address of server
for (i = 0; i < mysocketses; ++i) for (i = 0; i < mysocketses; ++i)
{ {
/* sendto tests that there is a network to this if (runp->ai_addr->sa_family == myfamily[i])
address */
if (runp->ai_addr->sa_family == myfamily[i] &&
sendto(mysockets[i], NULL, 0, 0,
runp->ai_addr, runp->ai_addrlen) == 0)
{ {
memcpy(&clientaddress[newnode], runp->ai_addr, runp->ai_addrlen); memcpy(&clientaddress[newnode], runp->ai_addr, runp->ai_addrlen);
break; break;