Fixed ipv6 address to use 0.0.0.0 instead of 127.0.0.1

This commit is contained in:
Unknown 2018-09-11 15:35:21 +02:00
parent 5f8dbaa7f1
commit 220f0a940a
2 changed files with 2 additions and 2 deletions

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) ? "::1" : "0.0.0.0";
Host = (family == AF_INET6) ? "::/0" : "0.0.0.0";
}
else
{

View file

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