mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
Merge branch 'fix-address-resolution-failure' into 'master'
Fix address resolution failure in certain circumstances See merge request STJr/SRB2!2617
This commit is contained in:
commit
53fabd11a2
1 changed files with 2 additions and 2 deletions
|
@ -1148,7 +1148,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
|
|||
DEBFILE(va("Creating new node: %s@%s\n", address, port));
|
||||
|
||||
memset (&hints, 0x00, sizeof (hints));
|
||||
hints.ai_flags = 0;
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
hints.ai_protocol = IPPROTO_UDP;
|
||||
|
@ -1178,7 +1178,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
|
|||
}
|
||||
}
|
||||
|
||||
if (i < mysocketses)
|
||||
if (i >= mysocketses)
|
||||
runp = runp->ai_next;
|
||||
else
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue