Merge pull request #1070 from devnexen/network_getaddrinfo_error

NET_Socket unix using getaddrinfo's error code in case.
This commit is contained in:
Yamagi 2023-11-04 14:13:24 +01:00 committed by GitHub
commit 06017193fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -850,6 +850,8 @@ NET_Socket(char *net_interface, int port, netsrc_t type, int family)
if ((Error = getaddrinfo(Host, Service, &hints, &res)))
{
Com_Printf("ERROR: NET_Socket: getaddrinfo:%s\n",
gai_strerror(Error));
return 0;
}