Update network.c

Fix IPV6 for MacOS - probably other OS'es too.
This commit is contained in:
Elkan Roelen 2018-09-11 15:06:44 +02:00 committed by GitHub
parent 0043977566
commit 0720409d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -829,7 +829,7 @@ NET_Socket(char *net_interface, int port, netsrc_t type, int family)
if (!net_interface || !net_interface[0] ||
!Q_stricmp(net_interface, "localhost"))
{
Host = (family == AF_INET6) ? "::" : "0.0.0.0";
Host = (family == AF_INET6) ? "::1" : "0.0.0.0";
}
else
{