mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Missed a spot for net_family.
This commit is contained in:
parent
80b2b82092
commit
5ee01879ec
1 changed files with 7 additions and 1 deletions
|
@ -493,7 +493,13 @@ UDP_OpenSocket (int port)
|
|||
address.sin6_family = AF_INET6;
|
||||
|
||||
memset (&hints, 0, sizeof (hints));
|
||||
hints.ai_family = PF_UNSPEC;
|
||||
if (strchr (net_family->string, '6')) {
|
||||
hints.ai_family = AF_INET6;
|
||||
} else if (strchr (net_family->string, '4')) {
|
||||
hints.ai_family = AF_INET;
|
||||
} else {
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
}
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
hints.ai_protocol = IPPROTO_UDP;
|
||||
hints.ai_flags = AI_PASSIVE;
|
||||
|
|
Loading…
Reference in a new issue